Skip to content
Snippets Groups Projects
Commit e29dc9e0 authored by Pierre Dureau's avatar Pierre Dureau
Browse files

Issue #3467411 by pdureau, G4MBINI: Variants are not loaded when no props in components

parent 8667ca8e
No related branches found
No related tags found
1 merge request!182Issue #3467411 by pdureau, G4MBINI: Variants are not loaded when no props in components
Pipeline #250576 passed
......@@ -120,12 +120,12 @@ class ComponentPluginManager extends SdcPluginManager implements CategorizingPlu
$definition['props']['properties'][$prop_id]['ui_patterns']['required'] = TRUE;
}
}
if (!isset($definition['props']['properties'])) {
return $definition;
}
if (isset($definition["variants"])) {
$definition['props']['properties']['variant'] = $this->buildVariantProp($definition);
}
if (!isset($definition['props']['properties'])) {
return $definition;
}
foreach ($definition['props']['properties'] as $prop_id => $prop) {
$definition['props']['properties'][$prop_id] = $this->annotateProp($prop_id, $prop, $fallback_prop_type_id);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment