Browse Source

Merge pull request #528 from provokateurin/fix/notes-empty-categories

fix(neon_notes): Fix creating note with empty categories
pull/529/head
Kate 1 year ago committed by GitHub
parent
commit
42c74fb02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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(); categories.sort();
// After sorting the empty category '' should be at the first place // After sorting the empty category '' should be at the first place
if (!categories.first.isNotEmpty) { if (categories.isNotEmpty && !categories.first.isNotEmpty) {
categories.insert(0, ''); categories.insert(0, '');
} }
} }

Loading…
Cancel
Save