Fix build error

This commit is contained in:
Sam Nolan 2022-07-05 17:43:13 +10:00
parent c4d2ad922a
commit 2c2f299e46

View File

@ -30,7 +30,7 @@ export type SquiggleEditorProps = SquiggleChartProps & {
export const SquiggleEditor: React.FC<SquiggleEditorProps> = (props) => {
const [code, setCode] = useMaybeControlledValue({
value: props.code,
defaultValue: props.defaultCode,
defaultValue: props.defaultCode ?? "",
onChange: props.onCodeChange,
});