Web: Files: Added check of downloadFiles response
This commit is contained in:
parent
b5157877d3
commit
e46ee43ec0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user