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