diff options
| author | dinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com> | 2021-07-28 14:18:28 -0400 |
|---|---|---|
| committer | dinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com> | 2021-07-28 14:18:28 -0400 |
| commit | bc53d54319780c4f9ca4f9ed3d8493cb82dd7486 (patch) | |
| tree | 9a398aee54ecebfd1dbf3359cabff25a19c1862a /src/client/views/collections/CollectionSubView.tsx | |
| parent | 6e0994d6b221ee1045e313554533ecc48c24f65d (diff) | |
| parent | b25dac80353e522c74aade90c3df8f01f38de0b7 (diff) | |
Merge branch 'master' into linking-anh
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 4 |
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); } |
