Refactor function_args check in add_extra_fields()
This commit is contained in:
parent
48dbbf1dd3
commit
14db3c0263
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ def build_field_config(custom_component: CustomComponent, user_id: Optional[Unio
|
||||||
|
|
||||||
def add_extra_fields(frontend_node, field_config, function_args):
|
def add_extra_fields(frontend_node, field_config, function_args):
|
||||||
"""Add extra fields to the frontend node"""
|
"""Add extra fields to the frontend node"""
|
||||||
if function_args is None or function_args == "":
|
if not function_args:
|
||||||
return
|
return
|
||||||
|
|
||||||
# sort function_args which is a list of dicts
|
# sort function_args which is a list of dicts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue