1
0
Fork 0
mirror of synced 2024-07-08 07:46:10 +12:00

Remove currentView flag from builder store

This commit is contained in:
Andrew Kingston 2022-05-12 09:42:57 +01:00
parent 5f7940d9a1
commit 8331b72b1a

View file

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