revert
This commit is contained in:
@@ -312,14 +312,12 @@
|
||||
|
||||
onMount(async () => {
|
||||
if (items) {
|
||||
tags = Array.from(
|
||||
new Set(
|
||||
items
|
||||
.filter((item) => !(item.model?.info?.meta?.hidden ?? false))
|
||||
.flatMap((item) => item.model?.tags ?? [])
|
||||
.map((tag) => tag.name.toLowerCase())
|
||||
)
|
||||
).sort((a, b) => a.localeCompare(b));
|
||||
tags = items
|
||||
.filter((item) => !(item.model?.info?.meta?.hidden ?? false))
|
||||
.flatMap((item) => item.model?.tags ?? [])
|
||||
.map((tag) => tag.name);
|
||||
// Remove duplicates and sort
|
||||
tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
tags = models
|
||||
.filter((model) => !(model?.meta?.hidden ?? false))
|
||||
.flatMap((model) => model?.meta?.tags ?? [])
|
||||
.map((tag) => tag.name.toLowerCase());
|
||||
.map((tag) => tag.name);
|
||||
|
||||
// Remove duplicates and sort
|
||||
tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
|
||||
|
||||
Reference in New Issue
Block a user