Skip to content

Commit

Permalink
🐛 (ComposioAPI.py): Fix issue where build_config was not being update…
Browse files Browse the repository at this point in the history
…d correctly when api_key is not empty
  • Loading branch information
Cristhianzl committed Aug 19, 2024
1 parent 08d2d89 commit f0e97c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/base/langflow/components/toolkits/ComposioAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,13 @@ def _get_normalized_app_name(self) -> str:

def update_build_config(self, build_config: dict, field_value: Any, field_name: str | None = None) -> dict:
if field_name == "api_key":
build_config = self._update_app_names_with_connected_status(build_config)
if hasattr(self, "api_key") and self.api_key != "":
build_config = self._update_app_names_with_connected_status(build_config)
return build_config

if field_name in {"app_names", "auth_status_config"}:
build_config["auth_status_config"]["value"] = self._check_for_authorization(self._get_normalized_app_name())
if hasattr(self, "api_key") and self.api_key != "":
build_config = self._update_app_names_with_connected_status(build_config)

all_action_names = [action_name for action_name in Action.__annotations__]
app_action_names = [
Expand Down

0 comments on commit f0e97c1

Please sign in to comment.