Resolve "Element duplication works only for the element at index 0"
Compare changes
+ 9
− 1
@@ -138,6 +138,7 @@ export const useEditorStore = defineStore('editor', {
@@ -138,6 +138,7 @@ export const useEditorStore = defineStore('editor', {
@@ -245,7 +246,14 @@ export const useEditorStore = defineStore('editor', {
@@ -245,7 +246,14 @@ export const useEditorStore = defineStore('editor', {
const newElement = structuredClone(toRaw(node.data.elements.find(element => element.id === this.openedNodeId)));