Web: Files: Added check of downloadFiles response

This commit is contained in:
Alexey Safronov 2021-10-15 22:31:32 +03:00
parent b5157877d3
commit e46ee43ec0

View File

@ -184,10 +184,11 @@ class FilesActionStore {
icon: "file",
label,
};
const item = await this.uploadDataStore.loopFilesOperations(
data,
pbData
);
const item =
data?.finished && data?.url
? data
: await this.uploadDataStore.loopFilesOperations(data, pbData);
if (item.url) {
window.location.href = item.url;