Skip to content

Commit

Permalink
added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
StoianLucian committed Mar 25, 2024
1 parent 46ac5aa commit ff39317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coral-component-shell/src/scripts/ShellMenuBarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class ShellMenuBarItem extends BaseComponent(HTMLElement) {

let shellMenuButtonIcon = this._elements.shellMenuButton.getElementsByTagName('coral-icon')[0];

if(shellMenuButtonIcon) {
if(shellMenuButtonIcon && shellMenuButtonIcon !== null ) {
shellMenuButtonIcon.setAttribute('alt', this.title);
}
}
Expand Down

0 comments on commit ff39317

Please sign in to comment.