diff --git a/frontend/src/component/feature/variant/AddVariant/OverrideConfig/OverrideConfig.jsx b/frontend/src/component/feature/variant/AddVariant/OverrideConfig/OverrideConfig.jsx index ab79ae4f37..fc65f47c72 100644 --- a/frontend/src/component/feature/variant/AddVariant/OverrideConfig/OverrideConfig.jsx +++ b/frontend/src/component/feature/variant/AddVariant/OverrideConfig/OverrideConfig.jsx @@ -33,9 +33,10 @@ const OverrideConfig = ({ }; return overrides.map((o, i) => { - const legalValues = - contextDefinitions.find(c => c.name === o.contextName) - .legalValues || []; + const definition = contextDefinitions.find( + c => c.name === o.contextName + ); + const legalValues = definition ? definition.legalValues : []; return (