Fix bug when selecting main page when creating autolinks

This commit is contained in:
Andrew Kingston 2020-10-20 09:32:14 +01:00
parent eaf65d803e
commit 02207af4f0
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ const createLink = store => async (url, title) => {
// Save page and regenerate all CSS because otherwise weird things happen // Save page and regenerate all CSS because otherwise weird things happen
nav._children = [...nav._children, newLink] nav._children = [...nav._children, newLink]
setCurrentPage("main") state.currentPageName = "main"
regenerateCssForScreen(state.pages.main) regenerateCssForScreen(state.pages.main)
for (let screen of state.pages.main._screens) { for (let screen of state.pages.main._screens) {
regenerateCssForScreen(screen) regenerateCssForScreen(screen)