Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jun 9, 2024
1 parent d4e2930 commit 1f4a090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion designer_v2/lib/common_views/form_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ class _FormScaffoldState<T extends FormViewModel>
return (bool value) async {
final backNavigationAllowed = await _promptBackNavigationConfirmation();
if (backNavigationAllowed) {
if (mounted && Navigator.of(context).canPop()) Navigator.of(context).pop();
if (mounted && Navigator.of(context).canPop()) {
Navigator.of(context).pop();
}
}
};
}
Expand Down

0 comments on commit 1f4a090

Please sign in to comment.