Fix new screens and autoscreens not displaying properly

This commit is contained in:
Andrew Kingston 2020-11-09 08:33:22 +00:00
parent 8795263192
commit 29af11faeb
1 changed files with 1 additions and 1 deletions

View File

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