mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 03:01:53 +10:00
revert structuredClone as it is not supported on proxy objects
This commit is contained in:
@ -34,7 +34,7 @@ export const moveItemInLayout = (
|
||||
): string[][][] => {
|
||||
try {
|
||||
// Create a deep copy of the layout to avoid mutating the original array
|
||||
const newLayout = structuredClone(layout);
|
||||
const newLayout = JSON.parse(JSON.stringify(layout));
|
||||
|
||||
// Get the item from the current location
|
||||
const item = newLayout[current.page][current.column][current.section];
|
||||
|
||||
Reference in New Issue
Block a user