From e4d6f6a643ca07516ec3c8eb4a542c69cfb7b1a2 Mon Sep 17 00:00:00 2001
From: Sam Wilkins <samwilkins333@gmail.com>
Date: Fri, 13 Sep 2019 22:30:31 -0400
Subject: updates

---
 src/client/util/Import & Export/DirectoryImportBox.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/client/util/Import & Export/DirectoryImportBox.tsx')

diff --git a/src/client/util/Import & Export/DirectoryImportBox.tsx b/src/client/util/Import & Export/DirectoryImportBox.tsx
index 1ae0e7525..a625e06c0 100644
--- a/src/client/util/Import & Export/DirectoryImportBox.tsx	
+++ b/src/client/util/Import & Export/DirectoryImportBox.tsx	
@@ -95,7 +95,7 @@ export default class DirectoryImportBox extends React.Component<FieldViewProps>
         let sizes: number[] = [];
         let modifiedDates: number[] = [];
 
-        const localUpload = async (batch: File[]) => {
+        const uploadLocally = async (batch: File[]) => {
             sizes.push(...batch.map(file => file.size));
             modifiedDates.push(...batch.map(file => file.lastModified));
 
@@ -107,7 +107,7 @@ export default class DirectoryImportBox extends React.Component<FieldViewProps>
             return (await fetch(Utils.prepend(RouteStore.upload), parameters)).json();
         };
 
-        const uploads = await validated.batchAction<FileResponse>(15, localUpload);
+        const uploads = await validated.convertInBatchesAsync<FileResponse>(15, uploadLocally);
 
         await Promise.all(uploads.map(async upload => {
             const type = upload.type;
-- 
cgit v1.2.3-70-g09d2

