add null-guard for stickerpickerWidget in StickerPicker
This commit is contained in:
parent
7bbb967ddd
commit
4850387ae0
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@ export default class Stickerpicker extends React.Component {
|
|||
}
|
||||
|
||||
_sendVisibilityToWidget(visible) {
|
||||
if (!this.state.stickerpickerWidget) return;
|
||||
const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id);
|
||||
if (widgetMessaging && visible !== this._prevSentVisibility) {
|
||||
widgetMessaging.sendVisibility(visible);
|
||||
|
|
Loading…
Reference in a new issue