From 8ed59fa89756aaada4c9271ab8c2cd2d7ef9b075 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Apr 2022 16:41:05 +0100 Subject: [PATCH] Allow adding blocks from new UI --- .../[screenId]/new/_components/NewComponentPanel.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte index 33a254e0f2..0fe0ca1780 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/NewComponentPanel.svelte @@ -86,6 +86,7 @@ const addComponent = async item => { try { await store.actions.components.create(item.component) + $goto("../") } catch (error) { notifications.error("Error creating component") } @@ -142,7 +143,7 @@ Blocks are a collection of pre-built components {#each blocks as block} -
+
addComponent(block)}> {block.name}