diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index 745afc165..8ffb6c3a9 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -797,7 +797,10 @@ class Toolbox extends Component { } Object.values(buttons).forEach((button: any) => { - if (this.props._buttonsWithNotifyClick.includes(button.key)) { + if ( + typeof button === 'object' + && this.props._buttonsWithNotifyClick.includes(button.key) + ) { button.handleClick = () => APP.API.notifyToolbarButtonClicked(button.key); } });