Skip to content

Commit fbe001a

Browse files
committed
Fix for #570 - togglestate is only saved if true, so absence is false
1 parent baa97f1 commit fbe001a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/phoenix-event-display/src/managers/ui-manager/phoenix-menu/phoenix-menu-node.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export class PhoenixMenuNode {
206206

207207
this.childrenActive = jsonObject['childrenActive'];
208208
this.toggleState = jsonObject['toggleState'];
209-
// eslint-disable-next-line
210-
this.toggleState !== undefined && this.onToggle?.(this.toggleState);
209+
210+
this.onToggle?.(this.toggleState);
211211

212212
for (const configState of jsonObject['configs']) {
213213
const nodeConfigs = this.configs.filter(

0 commit comments

Comments
 (0)