From 83479464f3e5f104432e26f751c7c318b04f43f8 Mon Sep 17 00:00:00 2001 From: Pianist038801 Date: Wed, 20 Oct 2021 12:45:31 -0400 Subject: [PATCH 1/2] fix: json bug on struct input Signed-off-by: Pianist038801 --- src/components/Launch/LaunchForm/StructInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Launch/LaunchForm/StructInput.tsx b/src/components/Launch/LaunchForm/StructInput.tsx index 7ef9c91e7..098c9ecb9 100644 --- a/src/components/Launch/LaunchForm/StructInput.tsx +++ b/src/components/Launch/LaunchForm/StructInput.tsx @@ -76,7 +76,7 @@ export const StructInput: React.FC = props => { } const [paramData, setParamData] = useState( - jsonFormRenderable ? JSON.parse(value as string) : {} + jsonFormRenderable && value ? JSON.parse(value as string) : {} ); const onFormChange = ({ formData }, e) => { From 5142f6eb7ba4673d81bc1ee6b5402e30f640f448 Mon Sep 17 00:00:00 2001 From: Pianist038801 Date: Mon, 25 Oct 2021 13:59:24 -0400 Subject: [PATCH 2/2] fix: update json form button color Signed-off-by: Pianist038801 --- src/components/Launch/LaunchForm/StructInput.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Launch/LaunchForm/StructInput.tsx b/src/components/Launch/LaunchForm/StructInput.tsx index 098c9ecb9..d90ef58a1 100644 --- a/src/components/Launch/LaunchForm/StructInput.tsx +++ b/src/components/Launch/LaunchForm/StructInput.tsx @@ -13,6 +13,13 @@ const muiTheme = createMuiTheme({ MuiTextField: { variant: 'outlined' } + }, + overrides: { + MuiButton: { + label: { + color: 'gray' + } + } } });