diff --git a/src/routes/(app)/modelfiles/create/+page.svelte b/src/routes/(app)/modelfiles/create/+page.svelte index 18dee2d3d..505ab02d8 100644 --- a/src/routes/(app)/modelfiles/create/+page.svelte +++ b/src/routes/(app)/modelfiles/create/+page.svelte @@ -93,7 +93,10 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, ''); }; const saveModelfile = async (modelfile) => { - await modelfiles.set([...$modelfiles, modelfile]); + await modelfiles.set([ + ...$modelfiles.filter((m) => m.tagName !== modelfile.tagName), + modelfile + ]); localStorage.setItem('modelfiles', JSON.stringify($modelfiles)); };