Merge pull request #2057 from matrix-org/t3chguy/null-guard-stickerpicker
add null-guard for stickerpickerWidget in StickerPickerpull/21833/head
						commit
						ac1f130f1e
					
				|  | @ -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 New Issue
	
	 Matthew Hodgson
						Matthew Hodgson