diff --git a/src/lib/components/admin/Settings/Models.svelte b/src/lib/components/admin/Settings/Models.svelte index 4eb42c5d6..06058fa9f 100644 --- a/src/lib/components/admin/Settings/Models.svelte +++ b/src/lib/components/admin/Settings/Models.svelte @@ -124,12 +124,11 @@ }).catch((error) => { return null; }); - - await init(); } else { await toggleModelById(localStorage.token, model.id); } + await init(); _models.set(await getModels(localStorage.token)); }; @@ -183,7 +182,7 @@
{#if models.length > 0} - {#each filteredModels as model, modelIdx (`${model.id}-${modelIdx}`)} + {#each filteredModels as model, modelIdx (model.id)}
{ toggleModelHandler(model); - await _models.set(await getModels(localStorage.token)); }} />