diff --git a/packages/journey-map/src/Chart/index.tsx b/packages/journey-map/src/Chart/index.tsx index cd18283f..ebae8f36 100644 --- a/packages/journey-map/src/Chart/index.tsx +++ b/packages/journey-map/src/Chart/index.tsx @@ -43,9 +43,10 @@ const Chart: FC = ({ color = blue[2] }) => { padding: [24, -10, 16, -10], tooltip: { formatter: (datum) => { - if (!datum || !datum.emtion) return; + if (!datum) return; const { emotion } = datum; + if (typeof emotion === 'undefined') return; return { name: '情绪值', value: getFormattedEmotion(emotion) }; },