Skip to content

Commit 628d3dc

Browse files
authored
Merge pull request #1303 from carloslancha/pr-1302
Fixes #1289 - SF
2 parents dd3dcff + 6b89644 commit 628d3dc

File tree

4 files changed

+1670
-2609
lines changed

4 files changed

+1670
-2609
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@
5858
"workspaces": {
5959
"packages":["packages/*"],
6060
"nohoist": ["**/clay-charts-shared"]
61+
},
62+
"resolutions": {
63+
"js-beautify": "1.7.5"
6164
}
6265
}

packages/clay-charts-shared/src/geomap.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,10 @@ export class Geomap {
146146
// Highlight the clicked province
147147
this.mapLayer
148148
.selectAll('path')
149-
.style(
150-
'fill',
151-
d =>
152-
this._selected && d === this._selected
153-
? this._color.selected
154-
: this._fillFn.bind(this)(d)
149+
.style('fill', d =>
150+
this._selected && d === this._selected
151+
? this._color.selected
152+
: this._fillFn.bind(this)(d)
155153
);
156154
}
157155

packages/clay-charts/src/PredictiveChart.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const DEFAULT_TOOLTIP = {
2323
const value =
2424
isObject(datum.value) && datum.value.hasOwnProperty('mid')
2525
? datum.value.mid
26-
: Array.isArray(datum.value) ? datum.value[1] : datum.value;
26+
: Array.isArray(datum.value)
27+
? datum.value[1]
28+
: datum.value;
2729

2830
return `<table class="bb-tooltip">
2931
<tbody>

0 commit comments

Comments
 (0)