This commit is contained in:
Horatiu Muresan 2022-04-19 12:23:34 +03:00
parent 9afe764f67
commit 732d57f56c
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ class Toolbox extends Component<Props> {
* @returns {string|undefined} - The button's notify mode.
*/
_getButtonNotifyMode(btnName) {
const notify = this.props._buttonsWithNotifyClick.find(
const notify = this.props._buttonsWithNotifyClick?.find(
(btn: string | Object) =>
(typeof btn === 'string' && btn === btnName)
|| (typeof btn === 'object' && btn.key === btnName)