diff options
| author | Fawn <fangrui_tong@brown.edu> | 2019-06-20 11:31:15 -0400 |
|---|---|---|
| committer | Fawn <fangrui_tong@brown.edu> | 2019-06-20 11:31:15 -0400 |
| commit | cd2db5bf11fb89e3cd7016f7f798d65698c74c5e (patch) | |
| tree | 9e46a9a6b940720e68eb1f390dacecae3f4730a8 /src/client/northstar/dash-nodes/HistogramBox.tsx | |
| parent | 73f03785f938542a91b28b35043f2feda2bc1432 (diff) | |
| parent | e9d62f4ca0dbeb57e46239047041a8a04da7b504 (diff) | |
merge
Diffstat (limited to 'src/client/northstar/dash-nodes/HistogramBox.tsx')
| -rw-r--r-- | src/client/northstar/dash-nodes/HistogramBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/northstar/dash-nodes/HistogramBox.tsx b/src/client/northstar/dash-nodes/HistogramBox.tsx index d7732ee86..a60eaea85 100644 --- a/src/client/northstar/dash-nodes/HistogramBox.tsx +++ b/src/client/northstar/dash-nodes/HistogramBox.tsx @@ -125,8 +125,7 @@ export class HistogramBox extends React.Component<FieldViewProps> { let mapped = brushingDocs.map((brush, i) => { brush.backgroundColor = StyleConstants.BRUSH_COLORS[i % StyleConstants.BRUSH_COLORS.length]; let brushed = DocListCast(brush.brushingDocs); - if (!brushed.length) - return null; + if (!brushed.length) return null; return { l: brush, b: brushed[0][Id] === proto[Id] ? brushed[1] : brushed[0] }; }); runInAction(() => this.HistoOp.BrushLinks.splice(0, this.HistoOp.BrushLinks.length, ...mapped.filter(m => m) as { l: Doc, b: Doc }[])); |
