diff options
author | James Hu <51237606+jameshu111@users.noreply.github.com> | 2023-06-07 12:30:53 -0400 |
---|---|---|
committer | James Hu <51237606+jameshu111@users.noreply.github.com> | 2023-06-07 12:30:53 -0400 |
commit | 27f518632c24f69fff360bef36eb0e5426167b83 (patch) | |
tree | 71492c349701dec34d5c3b2c3a1429c388e0494a /src/client/util/Import & Export/DirectoryImportBox.tsx | |
parent | 32b3261ae97a6d9c3c9e4c026dcd16bea61b3d73 (diff) |
Update other uses
Diffstat (limited to 'src/client/util/Import & Export/DirectoryImportBox.tsx')
-rw-r--r-- | src/client/util/Import & Export/DirectoryImportBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/Import & Export/DirectoryImportBox.tsx b/src/client/util/Import & Export/DirectoryImportBox.tsx index b9bb22564..1a4c2450e 100644 --- a/src/client/util/Import & Export/DirectoryImportBox.tsx +++ b/src/client/util/Import & Export/DirectoryImportBox.tsx @@ -112,7 +112,7 @@ export class DirectoryImportBox extends React.Component<FieldViewProps> { sizes.push(file.size); modifiedDates.push(file.lastModified); }); - collector.push(...(await Networking.UploadFilesToServer<Upload.ImageInformation>(batch))); + collector.push(...(await Networking.UploadFilesToServer<Upload.ImageInformation>(batch.map(file =>({file}))))); runInAction(() => (this.completed += batch.length)); }); |