Skip to content

Commit

Permalink
fix: indexAccessor(d) on discontinuousTimeScaleProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Industrial authored and markmcdowell committed Oct 10, 2020
1 parent 3395829 commit 48270a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scales/src/discontinuousTimeScaleProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export function discontinuousTimeScaleProviderBuilder() {
return {
data: finalData,
xScale,
xAccessor: (d: any) => d && indexAccessor(d).index,
xAccessor: (d: any) => d && indexAccessor(d)?.index,
displayXAccessor: realDateAccessor(inputDateAccessor),
};
};
Expand Down

0 comments on commit 48270a7

Please sign in to comment.