diff --git a/web/hooks/useDownloadState.ts b/web/hooks/useDownloadState.ts index bf5177228..811b6b53e 100644 --- a/web/hooks/useDownloadState.ts +++ b/web/hooks/useDownloadState.ts @@ -36,13 +36,14 @@ const setDownloadStateFailedAtom = atom( const state = currentState[modelId] if (!state) { console.debug(`Cannot find download state for ${modelId}`) - toaster({ - title: 'Download Failed', - description: `Model ${modelId} download failed: ${error}`, - type: 'error', - }) return } + toaster({ + title: 'Download Failed', + description: `Model ${modelId} download failed: ${error}`, + type: 'error', + }) + delete currentState[modelId] set(modelDownloadStateAtom, currentState) }