Skip to content

Commit

Permalink
Fix: All components should be missing when new version is available
Browse files Browse the repository at this point in the history
Regression of d62a8b7.
  • Loading branch information
graphemecluster committed Aug 30, 2024
1 parent 003e8e3 commit 432c1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/DownloadRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function DownloadRow({ db, inferenceMode, language, voice, setDow
const status = fileStatus ? isComplete ? fileStatus.version === CURRENT_VERSION ? "latest" : "new_version_available" : "incomplete" : "available_for_download";
setStatus(status);
setDownloadState({ inferenceMode, language, voice, status });
setMissingComponents(fileStatus?.missingComponents || new Set(ALL_COMPONENTS));
setMissingComponents(fileStatus?.version === CURRENT_VERSION ? fileStatus.missingComponents : new Set(ALL_COMPONENTS));
}
catch (error) {
setError(new DatabaseError("Failed to get download status", { cause: error }));
Expand Down

0 comments on commit 432c1b9

Please sign in to comment.