From 02207af4f0a8dc9f9b3a427c3a4424f71df00b6b Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 20 Oct 2020 09:32:14 +0100 Subject: [PATCH] Fix bug when selecting main page when creating autolinks --- packages/builder/src/builderStore/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index 01ab3db45a..4e7b089f5e 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -233,7 +233,7 @@ const createLink = store => async (url, title) => { // Save page and regenerate all CSS because otherwise weird things happen nav._children = [...nav._children, newLink] - setCurrentPage("main") + state.currentPageName = "main" regenerateCssForScreen(state.pages.main) for (let screen of state.pages.main._screens) { regenerateCssForScreen(screen)