Fix new screens and autoscreens not displaying properly
This commit is contained in:
parent
d248060d30
commit
8fecebf435
|
@ -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…
Reference in New Issue