aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorNaafiyan Ahmed <naafiyan@gmail.com>2022-08-19 12:32:23 -0400
committerNaafiyan Ahmed <naafiyan@gmail.com>2022-08-19 12:32:23 -0400
commitb7c4d65a3bf04ff7d2c10d93be282a1b0a4650b3 (patch)
treeffe7ade8cff2831d1fb4652312963f84289514bd /src/client/views/collections/CollectionSubView.tsx
parent94c38310c6b54d93e907007f20ba032d12697ca0 (diff)
added comments, cleaned up code, could not get spinner to center
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index fd2c722d2..eef485b95 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -470,7 +470,7 @@ export function CollectionSubView<X>(moreProps?: X) {
// generatedDocuments.push(Docs.Create.LoadingDocument(files, options));
const loading = Docs.Create.LoadingDocument(files, options);
generatedDocuments.push(loading);
- Docs.Create.filesToDocs.set(loading, files);
+ Docs.Create.docsToFiles.set(loading, files);
DocUtils.uploadYoutubeVideoLoading(files, {}, loading);
} else {
// uploadFilesToDocs and similar should return a placeholder, one for each placeholder
@@ -478,7 +478,7 @@ export function CollectionSubView<X>(moreProps?: X) {
...files.map(file => {
const loading = Docs.Create.LoadingDocument(file, options);
// now that there is a doc do whatever slowload was going to do with that file
- Docs.Create.filesToDocs.set(loading, file);
+ Docs.Create.docsToFiles.set(loading, file);
DocUtils.uploadFileToDoc(file, {}, loading);
return loading;
})