diff --git a/packages/axes/src/components/Axis.js b/packages/axes/src/components/Axis.js index 321c70bdeb..e2b4b8a2ed 100644 --- a/packages/axes/src/components/Axis.js +++ b/packages/axes/src/components/Axis.js @@ -14,8 +14,6 @@ import { computeCartesianTicks, getFormatter } from '../compute' import { axisPropTypes } from '../props' import AxisTick from './AxisTick' -const defaultTickRenderer = props => - const Axis = ({ axis, scale, @@ -146,7 +144,6 @@ const Axis = ({ animatedProps: transitionProps, ...tick, ...(onClick ? { onClick } : {}), - key: tick.key, }) })} ({ - key: value, + key: typeof value === 'number' || typeof value === 'string' ? value : `${value}`, value, ...translate(value), ...line,