finally tracked down issue with urlStateSync causing update
This commit is contained in:
parent
09f4db6b57
commit
09bb958f0f
|
@ -716,15 +716,16 @@ export class ComponentStore extends BudiStore<ComponentState> {
|
|||
*
|
||||
* @param {string} componentId
|
||||
*/
|
||||
select(componentId: string) {
|
||||
builderStore.update(state => {
|
||||
state.highlightedSetting = null
|
||||
return state
|
||||
})
|
||||
|
||||
select(id: string) {
|
||||
this.update(state => {
|
||||
state.selectedComponentId = componentId
|
||||
return state
|
||||
// Only clear highlights if selecting a different component
|
||||
if (!id.includes(state.selectedComponentId!)) {
|
||||
builderStore.highlightSetting()
|
||||
}
|
||||
return {
|
||||
...state,
|
||||
selectedComponentId: id,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue