From 5b9befcefe4c4f7227d88def551521e86ba143f4 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Mon, 10 Oct 2022 13:36:32 +0100 Subject: [PATCH] Allow deleteComponent from settings bar --- packages/client/src/stores/builder.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/client/src/stores/builder.js b/packages/client/src/stores/builder.js index fea070c27c..705bf79a41 100644 --- a/packages/client/src/stores/builder.js +++ b/packages/client/src/stores/builder.js @@ -47,6 +47,9 @@ const createBuilderStore = () => { duplicateComponent: id => { dispatchEvent("duplicate-component", { id }) }, + deleteComponent: id => { + dispatchEvent("delete-component", { id }) + }, notifyLoaded: () => { dispatchEvent("preview-loaded") },