Skip to content

Commit

Permalink
address issue 5289 - use if block instead of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Nov 19, 2020
1 parent 52b5051 commit 0a21710
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/traces/histogram/cross_trace_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ module.exports = function crossTraceDefaults(fullData, fullLayout) {
}

var binGroupFound = false;
for(i = 0; i < traces.length; i++) {
traceOut = traces[i];
if(traces.length) {
traceOut = traces[0];
binGroupFound = coerce('bingroup');
break;
}

groupName = binGroupFound || groupName;
Expand Down

0 comments on commit 0a21710

Please sign in to comment.