1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix: empty object playground (#4842)

This commit is contained in:
Mateusz Kwasniewski 2023-09-27 10:01:03 +02:00 committed by GitHub
parent e6cdf5a540
commit 40b9c46018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,8 @@ export const PlaygroundCodeFieldset: VFC<IPlaygroundCodeFieldsetProps> = ({
setFieldExist(
contextValue[contextField] !== undefined ||
contextValue?.properties[contextField] !== undefined
contextValue?.properties?.[contextField] !==
undefined
);
} catch (error: unknown) {
return setError(formatUnknownError(error));