Browse Source

Remove currentView flag from builder store

pull/6409/head
Andrew Kingston 4 years ago
parent
commit
8331b72b1a
  1. 2
      packages/builder/src/builderStore/store/frontend.js

2
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
})

Loading…
Cancel
Save