minor fix [skip ci]
OmarHatem committed
Apr 8, 2025 at 19:05 UTC
9fb30cc0fbebe55e383942f38a7384aaf2a96b79
1 file changed
+3
-1
lib/src/screens/nodes/node_create_or_edit_page.dart
+3
-1
@@ -182,7 +182,9 @@ class NodeCreateOrEditPage extends BasePage {
182
183
await nodeCreateOrEditViewModel.save(
184
editingNode: editingNode, saveAsCurrent: isSelected ?? false);
185
- Navigator.of(context).pop();
185
+ if (context.mounted) {
186
+ Navigator.of(context).pop();
187
+ }
188
},
189
text: S.of(context).save,
190
color: Theme.of(context).primaryColor,