aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorGeireann <60007097+geireann@users.noreply.github.com>2022-02-15 16:07:04 -0500
committerGeireann <60007097+geireann@users.noreply.github.com>2022-02-15 16:07:04 -0500
commit207217ae25f9b154506f39068a778eb49b826527 (patch)
treea702639124aa244dd0ccb640c9ce42fd0c53f92d /src/client/views/collections
parentbdccc7c147dbb985bff5286e318718e48fd7cc62 (diff)
parent7d5974c871fd50ed521ff8edd624c2c252553444 (diff)
Merge branch 'master' into parker
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx1
-rw-r--r--src/client/views/collections/CollectionSubView.tsx1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index ad3f3b217..70471d0d8 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -83,6 +83,7 @@ export class CollectionStackingView extends CollectionSubView<StackingDocument,
children = (docs: Doc[]) => {
TraceMobx();
this._docXfs.length = 0;
+ // Go through each of the documents that are contained
return docs.map((d, i) => {
const height = () => this.getDocHeight(d);
const width = () => this.getDocWidth(d);
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index fc1bcb8b9..34209ebc9 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -446,6 +446,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
generatedDocuments.push(...await DocUtils.uploadFilesToDocs(files, options));
}
if (generatedDocuments.length) {
+ // Creating a dash document
const isFreeformView = this.props.Document._viewType === CollectionViewType.Freeform;
const set = !isFreeformView ? generatedDocuments :
generatedDocuments.length > 1 ? generatedDocuments.map(d => { DocUtils.iconify(d); return d; }) : [];