fix(notify-button-clicked) Fix crash on mobile browsers
This commit is contained in:
parent
2d0a70f2ab
commit
98b05a2529
|
@ -820,7 +820,10 @@ class Toolbox extends Component<Props> {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue