Skip to content

Commit

Permalink
fix: json bug on struct input
Browse files Browse the repository at this point in the history
Signed-off-by: Pianist038801 <[email protected]>
  • Loading branch information
Pianist038801 committed Oct 20, 2021
1 parent 1eb256f commit 8347946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Launch/LaunchForm/StructInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const StructInput: React.FC<InputProps> = props => {
}

const [paramData, setParamData] = useState(
jsonFormRenderable ? JSON.parse(value as string) : {}
jsonFormRenderable && value ? JSON.parse(value as string) : {}
);

const onFormChange = ({ formData }, e) => {
Expand Down

0 comments on commit 8347946

Please sign in to comment.