diff --git a/web/app/components/datasets/hit-testing/components/score.tsx b/web/app/components/datasets/hit-testing/components/score.tsx index 115141eaaa0406..175b00b7e7f609 100644 --- a/web/app/components/datasets/hit-testing/components/score.tsx +++ b/web/app/components/datasets/hit-testing/components/score.tsx @@ -4,7 +4,7 @@ import React from 'react' import cn from '@/utils/classnames' type Props = { - value: number + value: number | null besideChunkName?: boolean } @@ -12,6 +12,9 @@ const Score: FC = ({ value, besideChunkName, }) => { + if (!value) + return null + return (