1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Fix ID's not being made unique when copying components

This commit is contained in:
Andrew Kingston 2021-02-04 18:00:16 +00:00
parent e94fb7d937
commit adb22dee69

View file

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