|
|
@ -416,7 +416,14 @@ export const getFrontendStore = () => { |
|
|
if (cut) { |
|
|
if (cut) { |
|
|
state.componentToPaste = null |
|
|
state.componentToPaste = null |
|
|
} else { |
|
|
} else { |
|
|
componentToPaste._id = uuid() |
|
|
const randomizeIds = component => { |
|
|
|
|
|
if (!component) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
component._id = uuid() |
|
|
|
|
|
component.children?.forEach(randomizeIds) |
|
|
|
|
|
} |
|
|
|
|
|
randomizeIds(componentToPaste) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (mode === "inside") { |
|
|
if (mode === "inside") { |
|
|
|