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:
parent
9fee273cff
commit
bede1b302f
@ -74,7 +74,7 @@ export const ConstraintAccordionViewHeaderInfo = ({
|
||||
variant={'body1'}
|
||||
color={
|
||||
Boolean(
|
||||
playgroundContext![
|
||||
playgroundContext?.[
|
||||
constraint.contextName
|
||||
]
|
||||
)
|
||||
@ -82,7 +82,7 @@ export const ConstraintAccordionViewHeaderInfo = ({
|
||||
: theme.palette.error.main
|
||||
}
|
||||
>
|
||||
{playgroundContext![
|
||||
{playgroundContext?.[
|
||||
constraint.contextName
|
||||
] || 'no value'}
|
||||
</Typography>
|
||||
|
Loading…
Reference in New Issue
Block a user