Skip to content

Commit

Permalink
Fix for #570 - togglestate is only saved if true, so absence is false
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardMoyse committed Nov 29, 2024
1 parent baa97f1 commit fbe001a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ export class PhoenixMenuNode {

this.childrenActive = jsonObject['childrenActive'];
this.toggleState = jsonObject['toggleState'];
// eslint-disable-next-line
this.toggleState !== undefined && this.onToggle?.(this.toggleState);

this.onToggle?.(this.toggleState);

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

0 comments on commit fbe001a

Please sign in to comment.