aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authordinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com>2021-07-28 14:18:28 -0400
committerdinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com>2021-07-28 14:18:28 -0400
commitbc53d54319780c4f9ca4f9ed3d8493cb82dd7486 (patch)
tree9a398aee54ecebfd1dbf3359cabff25a19c1862a /src/client/views/collections/CollectionSubView.tsx
parent6e0994d6b221ee1045e313554533ecc48c24f65d (diff)
parentb25dac80353e522c74aade90c3df8f01f38de0b7 (diff)
Merge branch 'master' into linking-anh
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 ca45536f4..a5d27f038 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -453,8 +453,8 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
generatedDocuments.length > 1 ? generatedDocuments.map(d => { DocUtils.iconify(d); return d; }) : [];
if (completed) completed(set);
else {
- if (isFreeformView) {
- addDocument(DocUtils.pileup(generatedDocuments, options.x!, options.y!)!);
+ if (isFreeformView && generatedDocuments.length > 1) {
+ addDocument(DocUtils.pileup(generatedDocuments, options.x!, options.y!));
} else {
generatedDocuments.forEach(addDocument);
}