diff --git a/src/rendering/react/components/OptionalValue.tsx b/src/rendering/react/components/OptionalValue.tsx index f6fca2a4..85589cf2 100644 --- a/src/rendering/react/components/OptionalValue.tsx +++ b/src/rendering/react/components/OptionalValue.tsx @@ -1,7 +1,7 @@ import { ReactNode } from "react"; import { Value } from "./Value.js"; -interface OptionalValueProps { +interface OptionalValueProps { value: T | undefined | null; render?: (value: T) => ReactNode; } @@ -12,7 +12,7 @@ interface OptionalValueProps { * @class * @param props */ -function OptionalValue(props: OptionalValueProps) { +function OptionalValue(props: OptionalValueProps) { const { render = (v) => <>{v} } = props; if (props.value === undefined || props.value === null) {