Skip to content

Commit

Permalink
fix: fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Makeen Sabree committed Nov 12, 2023
1 parent 639cd95 commit c0d2027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/victory-axis/src/helper-methods.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ export const getBaseProps = (props, fallbackProps) => {
? { [otherAxis]: props.scale[otherAxis] }
: undefined,
};
return ticks.reduce((childProps, tickValue, index) => {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
return (ticks as number[]).reduce((childProps, tickValue, index) => {
const tick = stringTicks ? stringTicks[index] : tickValue;
const text = tickFormat(tickValue, index, ticks);
const styles = getEvaluatedStyles(
Expand Down

0 comments on commit c0d2027

Please sign in to comment.