Remove currentView flag from builder store
This commit is contained in:
parent
550511d404
commit
b7b3136555
|
@ -191,7 +191,6 @@ export const getFrontendStore = () => {
|
||||||
if (!screen) return state
|
if (!screen) return state
|
||||||
|
|
||||||
state.selectedScreenId = screen._id
|
state.selectedScreenId = screen._id
|
||||||
state.currentView = "detail"
|
|
||||||
state.selectedComponentId = screen.props?._id
|
state.selectedComponentId = screen.props?._id
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
|
@ -446,7 +445,6 @@ export const getFrontendStore = () => {
|
||||||
// Save components and update UI
|
// Save components and update UI
|
||||||
await store.actions.preview.saveSelected()
|
await store.actions.preview.saveSelected()
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state.currentView = "component"
|
|
||||||
state.selectedComponentId = componentInstance._id
|
state.selectedComponentId = componentInstance._id
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue