From b7b3136555e011f46f8c75faac303e81adf0aa7b Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 12 May 2022 09:42:57 +0100 Subject: [PATCH] Remove currentView flag from builder store --- packages/builder/src/builderStore/store/frontend.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index 285e4607a3..d14fcb2cd4 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -191,7 +191,6 @@ export const getFrontendStore = () => { if (!screen) return state state.selectedScreenId = screen._id - state.currentView = "detail" state.selectedComponentId = screen.props?._id return state }) @@ -446,7 +445,6 @@ export const getFrontendStore = () => { // Save components and update UI await store.actions.preview.saveSelected() store.update(state => { - state.currentView = "component" state.selectedComponentId = componentInstance._id return state })