|
|
@ -106,10 +106,6 @@ const setPackage = (store, initial) => async pkg => { |
|
|
initial.pages = pkg.pages |
|
|
initial.pages = pkg.pages |
|
|
initial.hasAppPackage = true |
|
|
initial.hasAppPackage = true |
|
|
initial.screens = values(pkg.screens) |
|
|
initial.screens = values(pkg.screens) |
|
|
initial.allScreens = [ |
|
|
|
|
|
...Object.values(main_screens), |
|
|
|
|
|
...Object.values(unauth_screens), |
|
|
|
|
|
] |
|
|
|
|
|
initial.builtins = [getBuiltin("##builtin/screenslot")] |
|
|
initial.builtins = [getBuiltin("##builtin/screenslot")] |
|
|
initial.appInstances = pkg.application.instances |
|
|
initial.appInstances = pkg.application.instances |
|
|
initial.appId = pkg.application._id |
|
|
initial.appId = pkg.application._id |
|
|
@ -139,7 +135,6 @@ const _saveScreen = async (store, s, screen) => { |
|
|
innerState.pages[pageName]._screens = screens |
|
|
innerState.pages[pageName]._screens = screens |
|
|
innerState.screens = screens |
|
|
innerState.screens = screens |
|
|
innerState.currentPreviewItem = screen |
|
|
innerState.currentPreviewItem = screen |
|
|
innerState.allScreens = [...innerState.allScreens, screen] |
|
|
|
|
|
const safeProps = makePropsSafe( |
|
|
const safeProps = makePropsSafe( |
|
|
innerState.components[screen.props._component], |
|
|
innerState.components[screen.props._component], |
|
|
screen.props |
|
|
screen.props |
|
|
|