1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-15 07:25:54 +00:00

Remove custom value for unknown icon in icon picker (#28800)

This commit is contained in:
Paul Bottein
2026-01-05 11:57:09 +01:00
committed by Bram Kragten
parent 7b5cbb76ef
commit d48019a48e

View File

@@ -173,20 +173,6 @@ export class HaIconPicker extends LitElement {
}
}
// Allow preview for custom icon not in list
if (rankedItems.length === 0) {
rankedItems.push({
item: {
id: filter,
primary: filter,
icon: filter,
search_labels: { keyword: filter },
sorting_label: filter,
},
rank: 0,
});
}
return rankedItems
.sort((itemA, itemB) => itemA.rank - itemB.rank)
.map((item) => item.item);