From 682faea54bfb1dbdb928a9c1c4ac53cef670071a Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Tue, 11 Jun 2024 23:05:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(component.py):=20fix=20issue=20?= =?UTF-8?q?where=20input=20value=20was=20not=20being=20set=20correctly=20w?= =?UTF-8?q?hen=20not=20found=20in=20arguments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/custom/custom_component/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/custom/custom_component/component.py b/src/backend/base/langflow/custom/custom_component/component.py index 79035de24..6d2fe36e5 100644 --- a/src/backend/base/langflow/custom/custom_component/component.py +++ b/src/backend/base/langflow/custom/custom_component/component.py @@ -62,7 +62,7 @@ class Component(CustomComponent): setattr(self, key, value) for input_ in self.inputs: if input_.name not in params: - setattr(self, input_.name, None) + setattr(self, input_.name, input_.value) logger.warning(f"Input {input_.name} not found in arguments") self._arguments = params