"docs/source/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "273f765017a15194afba1ddf6e19e68b461586db"
Commit 8f494292 authored by Clivia's avatar Clivia
Browse files

Show only models that are not be hidden

parent f21e9dbd
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
let filteredModels = []; let filteredModels = [];
$: filteredModels = $models $: filteredModels = $models
.filter((p) => .filter(
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') (p) =>
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') &&
p?.info?.meta?.hidden
) )
.sort((a, b) => a.name.localeCompare(b.name)); .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