Browse Source

Merge pull request #541 from nextcloud/fix/notes-empty-category

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

Loading…
Cancel
Save