Skip to content

Commit f9e7292

Browse files
authored
Merge pull request #503 from MerginMaps/large_project_download_error
Large project download error
2 parents 6741750 + ddd9266 commit f9e7292

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

  • web-app/packages/lib/src/modules/project

web-app/packages/lib/src/modules/project/store.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -750,23 +750,23 @@ export const useProjectStore = defineStore('projectModule', {
750750
notificationStore.closeNotification()
751751
this.cancelDownloadArchive()
752752
} catch (e) {
753-
if (axios.isAxiosError(e) && e.response?.status === 400) {
754-
notificationStore.error({
755-
group: 'download-large-error',
756-
text: '',
757-
life: 6000
758-
})
759-
} else {
760-
notificationStore.error({
761-
text: errorMessage
762-
})
763-
}
753+
notificationStore.error({ text: errorMessage })
764754
this.cancelDownloadArchive()
765755
}
766756
}
767757
pollDownloadArchive()
768758
} catch (e) {
769-
notificationStore.error({ text: errorMessage })
759+
if (axios.isAxiosError(e) && e.response?.status === 400) {
760+
notificationStore.error({
761+
group: 'download-large-error',
762+
text: '',
763+
life: 6000
764+
})
765+
} else {
766+
notificationStore.error({
767+
text: errorMessage
768+
})
769+
}
770770
this.cancelDownloadArchive()
771771
}
772772
},

0 commit comments

Comments
 (0)