From 83479464f3e5f104432e26f751c7c318b04f43f8 Mon Sep 17 00:00:00 2001 From: Pianist038801 Date: Wed, 20 Oct 2021 12:45:31 -0400 Subject: [PATCH] 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) => {