From c0d20271f47e0b5d88034f8b3f07a7c14fa7496f Mon Sep 17 00:00:00 2001 From: Makeen Sabree Date: Tue, 7 Nov 2023 16:14:39 -0500 Subject: [PATCH] fix: fix type check --- packages/victory-axis/src/helper-methods.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(