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

fix: avoid crash on missing playgroundContext

This commit is contained in:
olav 2022-08-01 13:02:45 +02:00
parent 9fee273cff
commit bede1b302f

View File

@ -74,7 +74,7 @@ export const ConstraintAccordionViewHeaderInfo = ({
variant={'body1'} variant={'body1'}
color={ color={
Boolean( Boolean(
playgroundContext![ playgroundContext?.[
constraint.contextName constraint.contextName
] ]
) )
@ -82,7 +82,7 @@ export const ConstraintAccordionViewHeaderInfo = ({
: theme.palette.error.main : theme.palette.error.main
} }
> >
{playgroundContext![ {playgroundContext?.[
constraint.contextName constraint.contextName
] || 'no value'} ] || 'no value'}
</Typography> </Typography>