Commit fd53a6d

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2023-12-21 16:31:51
make edit assertion non blocking
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent 27161ef
Changed files (1)
lib
components
lib/components/measurement_list/measurement_list_entry.dart
@@ -38,8 +38,8 @@ class MeasurementListRow extends StatelessWidget {
                   if (context.mounted) {
                     model.addAndExport(context, measurement);
                   } else {
-                    assert(false, 'context not mounted');
                     model.add(measurement);
+                    assert(false, 'context not mounted');
                   }
                 },
                 icon: const Icon(Icons.edit),