Browse Source

Fix new screens and autoscreens not displaying properly

master
Andrew Kingston 6 years ago
parent
commit
29af11faeb
  1. 2
      packages/builder/src/builderStore/store/frontend.js

2
packages/builder/src/builderStore/store/frontend.js

@ -177,7 +177,7 @@ export const getFrontendStore = () => {
const foundScreen = currentPageScreens.findIndex( const foundScreen = currentPageScreens.findIndex(
el => el._id === screen._id el => el._id === screen._id
) )
if (currentPageScreens !== -1) { if (foundScreen !== -1) {
currentPageScreens.splice(foundScreen, 1) currentPageScreens.splice(foundScreen, 1)
} }
currentPageScreens.push(screen) currentPageScreens.push(screen)

Loading…
Cancel
Save