Skip to content

Commit

Permalink
fix: missed null-promise on convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed Jun 2, 2024
1 parent 2d178db commit 56a3427
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage> {
}

focusManager = AFFocusManager.maybeOf(context);
focusManager!.loseFocusNotifier.addListener(_loseFocus);
focusManager?.loseFocusNotifier.addListener(_loseFocus);

if (widget.initialSelection != null) {
widget.editorState.updateSelectionWithReason(widget.initialSelection);
Expand Down

0 comments on commit 56a3427

Please sign in to comment.