Add check for None value in template_config assignment
This commit is contained in:
parent
96d733c04d
commit
4bca4fd894
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,8 @@ class Component:
|
|||
for attribute, func in attributes_func_mapping.items():
|
||||
if hasattr(component_instance, attribute):
|
||||
value = getattr(component_instance, attribute)
|
||||
template_config[attribute] = func(value=value)
|
||||
if value is not None:
|
||||
template_config[attribute] = func(value=value)
|
||||
|
||||
return template_config
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue