aboutsummaryrefslogtreecommitdiff
path: root/src/client/northstar
diff options
context:
space:
mode:
authorSam Wilkins <samuel_wilkins@brown.edu>2019-06-26 12:48:40 -0400
committerSam Wilkins <samuel_wilkins@brown.edu>2019-06-26 12:48:40 -0400
commit444f970365a4280376e929e78c16090f6ae92739 (patch)
tree8b8a1412e9cad8f508234dcf71043a7cedbc2fc4 /src/client/northstar
parent64ffa0accfc872c81035079527952aabaf56c6f6 (diff)
parent219cabb3fe42ab199550efc3423b7aaed4e1ee93 (diff)
merged with master
Diffstat (limited to 'src/client/northstar')
-rw-r--r--src/client/northstar/dash-nodes/HistogramBox.tsx3
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 }[]));