Skip to content

Commit

Permalink
fix: json bug on struct input (#233)
Browse files Browse the repository at this point in the history
* fix: json bug on struct input

Signed-off-by: Pianist038801 <[email protected]>

* fix: update json form button color

Signed-off-by: Pianist038801 <[email protected]>

Co-authored-by: Pianist038801 <[email protected]>
  • Loading branch information
Pianist038801 and Pianist038801 authored Oct 25, 2021
1 parent 1eb256f commit 88c23a6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Launch/LaunchForm/StructInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ const muiTheme = createMuiTheme({
MuiTextField: {
variant: 'outlined'
}
},
overrides: {
MuiButton: {
label: {
color: 'gray'
}
}
}
});

Expand Down Expand Up @@ -76,7 +83,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 88c23a6

Please sign in to comment.