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'}
|
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>
|
||||||
|
Loading…
Reference in New Issue
Block a user