Skip to content

Commit 8403de8

Browse files
committed
Small type fix
1 parent 6f623be commit 8403de8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/stores.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function seriesStore(series: Array<Series>, props): SeriesStore {
6666
return color;
6767
};
6868

69-
function series2storeData(s: any, idx: number): Series {
69+
function series2storeData(s: Series|number, idx: number): Series {
7070

7171
let data: any = {};
7272

@@ -144,6 +144,7 @@ export function seriesStore(series: Array<Series>, props): SeriesStore {
144144
perc: Math.round(sv.perc - (sv.perc - tv.perc) * t),
145145
prevOffset: sv.prevOffset - (sv.prevOffset - tv.prevOffset) * t,
146146
};
147+
147148
}
148149

149150
const toColor = to.series[idx].hasOwnProperty('color') && to.series[idx].color ? to.series[idx].color : getColorForSeries(newSeries[idx], idx);
@@ -182,10 +183,8 @@ export function seriesStore(series: Array<Series>, props): SeriesStore {
182183
newSeries = [newSeries];
183184

184185
newSeries = newSeries.map(s => {
185-
186186
if(typeof s != 'object')
187187
s = {perc: s};
188-
189188
return s;
190189
});
191190

0 commit comments

Comments
 (0)