bugfix: create new screen exception
This commit is contained in:
parent
f4eaf4d896
commit
22560c475e
|
@ -473,9 +473,12 @@ const _saveScreen = async (store, s, screen) => {
|
||||||
),
|
),
|
||||||
updatedScreen,
|
updatedScreen,
|
||||||
]
|
]
|
||||||
s.pages[s.currentPageName]._screens = screens
|
store.update(innerState => {
|
||||||
s.screens = screens
|
innerState.pages[s.currentPageName]._screens = screens
|
||||||
_savePage(s)
|
innerState.screens = screens
|
||||||
|
_savePage(innerState)
|
||||||
|
return innerState
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
@ -502,7 +505,9 @@ const createScreen = store => (screenName, route, layoutComponentName) => {
|
||||||
s.currentComponentInfo = newScreen.props
|
s.currentComponentInfo = newScreen.props
|
||||||
s.currentFrontEndType = "screen"
|
s.currentFrontEndType = "screen"
|
||||||
|
|
||||||
return _saveScreen(store, s, newScreen)
|
_saveScreen(store, s, newScreen)
|
||||||
|
|
||||||
|
return s
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue