Allow pasting multiple times after copying when not cutting
This commit is contained in:
parent
b82c57fac8
commit
be76f9ebfb
|
@ -642,9 +642,11 @@ export const getFrontendStore = () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Update state
|
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
delete state.componentToPaste
|
// Remove copied component if cutting
|
||||||
|
if (state.componentToPaste.isCut) {
|
||||||
|
delete state.componentToPaste
|
||||||
|
}
|
||||||
state.selectedComponentId = newComponentId
|
state.selectedComponentId = newComponentId
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue