diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-17 13:38:07 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-17 13:38:07 -0400 |
| commit | 2e6a3e1aa3fb5b82587a9c84aba8bccef96963d3 (patch) | |
| tree | 73e375e1354701d00a2718fb1d777de26b45351d /src/client/views/collections/collectionGrid/CollectionGridView.tsx | |
| parent | 375786198596ce8dcab06c39c5b4ffcca4a78b88 (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/CollectionGridView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionGrid/CollectionGridView.tsx | 2 |
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) { |
