Browse Source

fix(neon_notes): Fix creating note with empty categories

pull/528/head
jld3103 1 year ago
parent
commit
9d9e6dfc57
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/neon/neon_notes/lib/widgets/category_select.dart

2
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, '');
}
}

Loading…
Cancel
Save