Skip to content

Commit 84de36e

Browse files
committed
fix(ui): minor type error
1 parent 4eb40ba commit 84de36e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/components/feature/interpret.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ const FeatureCustomInterpretionArea = ({
6060
export const FeatureInterpretation = ({ feature }: { feature: Feature }) => {
6161
const [showCustomInput, setShowCustomInput] = useState<boolean>(false);
6262

63-
const [interpretation, setInterpretation] = useState<Interpretation | null>(feature.interpretation);
63+
const [interpretation, setInterpretation] = useState<Interpretation | null>(
64+
feature.interpretation || null
65+
);
6466

6567
const [validating, setValidating] = useState<boolean>(false);
6668

0 commit comments

Comments
 (0)