diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index ee0c98ed8d..1089e260a9 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -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)