From cc08c263c80de17470017ca1044d5e83538704fd Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 5 May 2022 08:57:49 +0100 Subject: [PATCH] Fix duplicate component action in settings bar --- packages/client/src/components/preview/SettingsBar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/preview/SettingsBar.svelte b/packages/client/src/components/preview/SettingsBar.svelte index bf0b48250a..154a115c98 100644 --- a/packages/client/src/components/preview/SettingsBar.svelte +++ b/packages/client/src/components/preview/SettingsBar.svelte @@ -155,7 +155,7 @@ icon="Duplicate" on:click={() => { builderStore.actions.duplicateComponent( - $builderStore.selectedComponent._id + $builderStore.selectedComponentId ) }} title="Duplicate component"