From 213a5fb89aea3b47fc248153e72164afd666ed9b Mon Sep 17 00:00:00 2001 From: hmuresan Date: Wed, 17 Nov 2021 17:35:03 +0200 Subject: [PATCH] fix(notify-button-clicked) Fix crash on mobile browsers --- react/features/toolbox/components/web/Toolbox.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } });