fix: stop deleting the model when an Ollama download is cancelled (#31824)

This commit is contained in:
G30 authored and GitHub committed 2026-10-01 12:26:13 -05:00
1 parent e1248e5cfd
commit 6eb0a0b77e
2 files changed
-2

No files matched your search

@@ -488,7 +488,6 @@
MODEL_DOWNLOAD_POOL.set({
...$MODEL_DOWNLOAD_POOL
});
await deleteModel(localStorage.token, model);
toast.success($i18n.t('{{model}} download has been canceled', { model: model }));
}
};
@@ -774,7 +774,6 @@
MODEL_DOWNLOAD_POOL.set({
...$MODEL_DOWNLOAD_POOL
});
await deleteModel(localStorage.token, model);
toast.success($i18n.t('{{model}} download has been canceled', { model: model }));
} else {
const displayModel = $MODEL_DOWNLOAD_POOL[model]?.model ?? model;