aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2022-09-20 11:52:44 -0400
committermehekj <mehek.jethani@gmail.com>2022-09-20 11:52:44 -0400
commit945c0cd12fb2a792d10800f81b52cbac8aa12a41 (patch)
treebad726c19905e6bf8910d96d0b79eaff1b319457 /src/client/views/collections/CollectionSubView.tsx
parent87096243391cf172c26190897c79321b3d42817c (diff)
display error instead of infinitely loading after refresh
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 7fc1a800b..3ae965af0 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -465,12 +465,14 @@ export function CollectionSubView<X>(moreProps?: X) {
const loading = Docs.Create.LoadingDocument(files, options);
generatedDocuments.push(loading);
loading.isLoading = true;
+ Doc.addCurrentlyLoading(loading);
DocUtils.uploadYoutubeVideoLoading(files, {}, loading);
} else {
generatedDocuments.push(
...files.map(file => {
const loading = Docs.Create.LoadingDocument(file, options);
loading.isLoading = true;
+ Doc.addCurrentlyLoading(loading);
DocUtils.uploadFileToDoc(file, {}, loading);
return loading;
})