mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Fix search for labels and categories (#20262)
This commit is contained in:
@@ -385,8 +385,8 @@ export class HaLabelPicker extends SubscribeMixin(LitElement) {
|
||||
|
||||
const filteredItems = fuzzyFilterSort<ScorableLabelItem>(
|
||||
filterString,
|
||||
target.items?.filter((item) =>
|
||||
[NO_LABELS_ID, ADD_NEW_ID].includes(item.ignoreFilter)
|
||||
target.items?.filter(
|
||||
(item) => ![NO_LABELS_ID, ADD_NEW_ID].includes(item.label_id)
|
||||
) || []
|
||||
);
|
||||
if (filteredItems.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user