Skip to content

Commit ce4d738

Browse files
committed
fix: skip clearing if state is ready
1 parent 0f44234 commit ce4d738

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/actions/Export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function clearStaleExportDownloads() {
6464
}
6565
for (const key of Object.keys(exportDownloads)) {
6666
const exportDownload = exportDownloads[key];
67-
if (!exportDownload || exportDownload.state === CONST.EXPORT_DOWNLOAD.STATE.PREPARING) {
67+
if (!exportDownload || exportDownload.state === CONST.EXPORT_DOWNLOAD.STATE.PREPARING || exportDownload.state === CONST.EXPORT_DOWNLOAD.STATE.READY) {
6868
continue;
6969
}
7070
const exportID = key.replace(ONYXKEYS.COLLECTION.EXPORT_DOWNLOAD, '');

0 commit comments

Comments
 (0)