|
|
@ -17,7 +17,7 @@ export function RecorderUI (props: RecorderProps) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (props.currentFile.endsWith('.json')) setEnableRunButton(false) |
|
|
|
if (props.currentFile && props.currentFile.endsWith('.json')) setEnableRunButton(false) |
|
|
|
else setEnableRunButton(true) |
|
|
|
else setEnableRunButton(true) |
|
|
|
}, [props.currentFile]) |
|
|
|
}, [props.currentFile]) |
|
|
|
|
|
|
|
|
|
|
|