diff --git a/packages/neon/neon_notes/lib/widgets/category_select.dart b/packages/neon/neon_notes/lib/widgets/category_select.dart index 14f3a555..040cf27d 100644 --- a/packages/neon/neon_notes/lib/widgets/category_select.dart +++ b/packages/neon/neon_notes/lib/widgets/category_select.dart @@ -15,7 +15,7 @@ class NotesCategorySelect extends StatelessWidget { categories.sort(); // After sorting the empty category '' should be at the first place - if (!categories.first.isNotEmpty) { + if (categories.isNotEmpty && !categories.first.isNotEmpty) { categories.insert(0, ''); } }