1
0
Fork 0
mirror of synced 2024-08-10 23:51:24 +12:00

Allow pasting multiple times after copying when not cutting

This commit is contained in:
Andrew Kingston 2022-07-15 10:00:19 +01:00
parent b4420fb74a
commit d14a9b0521

View file

@ -642,9 +642,11 @@ export const getFrontendStore = () => {
}
})
// Update state
store.update(state => {
delete state.componentToPaste
// Remove copied component if cutting
if (state.componentToPaste.isCut) {
delete state.componentToPaste
}
state.selectedComponentId = newComponentId
return state
})