Skip to content

Commit ae13857

Browse files
committed
[perf] reshapeListing - no cloneDeep
1 parent d0a54a0 commit ae13857

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/project/types/website/listing/website-listing-template.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ export function reshapeListing(
318318
listing: Listing,
319319
format: Format,
320320
): ReshapedListing {
321-
const reshaped = cloneDeep(listing) as Listing;
321+
const reshaped = {
322+
...listing,
323+
} as Listing;
322324

323325
// Add template utilities
324326
const utilities = {} as Record<string, unknown>;

0 commit comments

Comments
 (0)