Browse Source

fix(neon_files): Fix empty categories

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/541/head
jld3103 1 year ago
parent
commit
e778f73ee7
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      packages/neon/neon_notes/lib/widgets/category_select.dart

3
packages/neon/neon_notes/lib/widgets/category_select.dart

@ -14,8 +14,7 @@ class NotesCategorySelect extends StatelessWidget {
categories.sort();
// After sorting the empty category '' should be at the first place
if (categories.isNotEmpty && !categories.first.isNotEmpty) {
if (categories.isEmpty) {
categories.insert(0, '');
}
}

Loading…
Cancel
Save