diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-08-13 21:57:25 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-08-13 21:57:25 -0400 |
commit | b74ceb9c9259e5ab0f41922ce22fb5776152579d (patch) | |
tree | 43de8011a47a500aea4d69099b27c1c1bbe2ce9d /src | |
parent | 01cf655111df11f21da2d0e66eb2f4b70b0827f5 (diff) |
fixed exception
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 4efd8e050..ce4c98671 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -293,7 +293,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) { Math.floor((this.props.PanelWidth() - 2 * this.xMargin) / (this.columnWidth + this.gridGap)))); let templatecols = ""; for (let i = 0; i < cols; i++) templatecols += `${this.columnWidth}px `; - return <div key={heading.heading} className="collectionStackingView-masonrySection"> + return <div key={heading ? heading.heading : "empty"} className="collectionStackingView-masonrySection"> {!heading ? (null) : <div key={`${heading.heading}`} className="collectionStackingView-sectionHeader" style={{ background: heading.color }}> {heading.heading} |