refactor: Update APIRequestComponent to handle empty curl command in update_build_config
This commit is contained in:
parent
382910c21a
commit
8602cdd7fe
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ class APIRequestComponent(Component):
|
||||||
return build_config
|
return build_config
|
||||||
|
|
||||||
def update_build_config(self, build_config: dotdict, field_value: Any, field_name: str | None = None):
|
def update_build_config(self, build_config: dotdict, field_value: Any, field_name: str | None = None):
|
||||||
if field_name == "curl" and field_value is not None:
|
if field_name == "curl" and field_value:
|
||||||
build_config = self.parse_curl(field_value, build_config)
|
build_config = self.parse_curl(field_value, build_config)
|
||||||
return build_config
|
return build_config
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue