From be76f9ebfbe15c11f9819e8d77bb0cb8e3cb8eee Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 15 Jul 2022 10:00:19 +0100 Subject: [PATCH] Allow pasting multiple times after copying when not cutting --- packages/builder/src/builderStore/store/frontend.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index df4abdbee5..ed79d8edfe 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -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 })