diff --git a/packages/victory-axis/src/helper-methods.tsx b/packages/victory-axis/src/helper-methods.tsx index 03f4838c0..6821fce11 100644 --- a/packages/victory-axis/src/helper-methods.tsx +++ b/packages/victory-axis/src/helper-methods.tsx @@ -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(