Skip to content

Commit

Permalink
fix(core/menu): prevent null pointer excetption (#1571)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Maurer <[email protected]>
  • Loading branch information
AndreasBerliner and nuke-ellington authored Nov 22, 2024
1 parent 4c969b5 commit 720fb53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-kiwis-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siemens/ix': patch
---

Prevent null pointer exception in ix-menu component.
2 changes: 1 addition & 1 deletion packages/core/src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class Menu {
}

componentDidRender() {
if (!this.about) {
if (!this.about && this.aboutNewsPopover) {
this.aboutNewsPopover.show = false;
}
this.appendFragments();
Expand Down

0 comments on commit 720fb53

Please sign in to comment.