From 449509a2030c16eca22609c16f7ecb507bcb6871 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 14 Dec 2020 11:14:36 +0000 Subject: [PATCH] Fix URL update after creating a new layout --- .../builder/src/components/userInterface/NewLayoutModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/userInterface/NewLayoutModal.svelte b/packages/builder/src/components/userInterface/NewLayoutModal.svelte index dbc9e3dc7a..1781c6a2d3 100644 --- a/packages/builder/src/components/userInterface/NewLayoutModal.svelte +++ b/packages/builder/src/components/userInterface/NewLayoutModal.svelte @@ -8,7 +8,7 @@ async function save() { try { - const layout = store.actions.layouts.save({ name }) + const layout = await store.actions.layouts.save({ name }) $goto(`./${layout._id}`) notifier.success(`Layout ${name} created successfully`) } catch (err) {