This commit is contained in:
Timothy J. Baek 2024-10-23 01:48:26 -07:00
parent a41a5cc0c8
commit b9af35be4c

View File

@ -40,9 +40,11 @@
let selectedModel = null; let selectedModel = null;
$: if (_models) { $: if (_models) {
filteredModels = _models.filter( filteredModels = _models
(m) => searchValue === '' || m.name.toLowerCase().includes(searchValue.toLowerCase()) .filter((m) => m?.owned_by !== 'arena')
); .filter(
(m) => searchValue === '' || m.name.toLowerCase().includes(searchValue.toLowerCase())
);
} }
let sortable = null; let sortable = null;
@ -243,7 +245,7 @@
onMount(async () => { onMount(async () => {
// Legacy code to sync localModelfiles with models // Legacy code to sync localModelfiles with models
_models = $models.filter((m) => m?.owned_by !== 'arena'); _models = $models;
localModelfiles = JSON.parse(localStorage.getItem('modelfiles') ?? '[]'); localModelfiles = JSON.parse(localStorage.getItem('modelfiles') ?? '[]');
if (localModelfiles) { if (localModelfiles) {