Fix weird edge case around saving page state
This commit is contained in:
parent
0116f12ad5
commit
bf27d752bc
|
@ -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]
|
||||||
state.currentPageName = "main"
|
setCurrentPage("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)
|
||||||
|
|
Loading…
Reference in New Issue