Skip to content

Commit

Permalink
Merge pull request #5293 from plotly/fix5289-gcc
Browse files Browse the repository at this point in the history
Set false locale
  • Loading branch information
archmoj authored Nov 19, 2020
2 parents 4afc441 + 0a21710 commit aa6f442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ function emptySubplotLists() {
*/
function getFormatObj(gd, formatKeys) {
var locale = gd._context.locale;
if(!locale) locale === 'en-US';
if(!locale) locale = 'en-US';

var formatDone = false;
var formatObj = {};
Expand Down
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 aa6f442

Please sign in to comment.