Commit 8f494292 authored by Clivia's avatar Clivia
Browse files

Show only models that are not be hidden

parent f21e9dbd
......@@ -21,8 +21,10 @@
let filteredModels = [];
$: filteredModels = $models
.filter((p) =>
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '')
.filter(
(p) =>
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') &&
p?.info?.meta?.hidden
)
.sort((a, b) => a.name.localeCompare(b.name));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment