Allow pasting multiple times after copying when not cutting
This commit is contained in:
parent
b4420fb74a
commit
d14a9b0521
1 changed files with 4 additions and 2 deletions
|
@ -642,9 +642,11 @@ export const getFrontendStore = () => {
|
|||
}
|
||||
})
|
||||
|
||||
// Update state
|
||||
store.update(state => {
|
||||
// Remove copied component if cutting
|
||||
if (state.componentToPaste.isCut) {
|
||||
delete state.componentToPaste
|
||||
}
|
||||
state.selectedComponentId = newComponentId
|
||||
return state
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue