1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

Fix new screens and autoscreens not displaying properly

This commit is contained in:
Andrew Kingston 2020-11-09 08:33:22 +00:00
parent d248060d30
commit 8fecebf435

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)