From 40b9c460184b77dff5865f88a485d6b3c7012d6e Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 27 Sep 2023 10:01:03 +0200 Subject: [PATCH] fix: empty object playground (#4842) --- .../PlaygroundCodeFieldset/PlaygroundCodeFieldset.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundCodeFieldset.tsx b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundCodeFieldset.tsx index a0f93cc0c4..dc42aba023 100644 --- a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundCodeFieldset.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundCodeFieldset/PlaygroundCodeFieldset.tsx @@ -63,7 +63,8 @@ export const PlaygroundCodeFieldset: VFC = ({ setFieldExist( contextValue[contextField] !== undefined || - contextValue?.properties[contextField] !== undefined + contextValue?.properties?.[contextField] !== + undefined ); } catch (error: unknown) { return setError(formatUnknownError(error));