Skip to content

Commit

Permalink
fix(patches-selector): missing logic when hiding empty labels
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAabedKhan committed Oct 30, 2023
1 parent 401fd8b commit f036418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ui/views/patches_selector/patches_selector_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
return Container();
}
}),
model.getPatchCategory(context, 'patchesSelectorView.patches'),
if (model.getQueriedPatches(_query).any((patch) => !model.isPatchNew(patch)))
model.getPatchCategory(context, 'patchesSelectorView.patches'),
],
),
...model.getQueriedPatches(_query).map(
Expand Down

0 comments on commit f036418

Please sign in to comment.