aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionGrid
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-06-17 13:38:07 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-06-17 13:38:07 -0400
commit2e6a3e1aa3fb5b82587a9c84aba8bccef96963d3 (patch)
tree73e375e1354701d00a2718fb1d777de26b45351d /src/client/views/collections/collectionGrid
parent375786198596ce8dcab06c39c5b4ffcca4a78b88 (diff)
fixed docdecorations on collecction with side filter bar expanded. cleaned up warnings/error messages a bit.
Diffstat (limited to 'src/client/views/collections/collectionGrid')
-rw-r--r--src/client/views/collections/collectionGrid/CollectionGridView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionGrid/CollectionGridView.tsx b/src/client/views/collections/collectionGrid/CollectionGridView.tsx
index a5d355abc..2015ca930 100644
--- a/src/client/views/collections/collectionGrid/CollectionGridView.tsx
+++ b/src/client/views/collections/collectionGrid/CollectionGridView.tsx
@@ -163,7 +163,7 @@ export class CollectionGridView extends CollectionSubView(GridSchema) {
const savedLayouts = this.savedLayoutList;
this.childLayoutPairs.forEach(({ layout: doc }) => {
const gridLayout = savedLayouts.find(gridLayout => gridLayout.i === doc[Id]);
- gridLayout && Object.assign(gridLayout, layoutArray.find(layout => layout.i === doc[Id]) || gridLayout);
+ if (gridLayout) Object.assign(gridLayout, layoutArray.find(layout => layout.i === doc[Id]) || gridLayout);
});
if (this.props.Document.gridStartCompaction) {