### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/9385 Based on my understanding, I think checking empty string is fine ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>tags/v0.20.2
| @@ -57,7 +57,7 @@ class Invoke(ComponentBase, ABC): | |||
| def _invoke(self, **kwargs): | |||
| args = {} | |||
| for para in self._param.variables: | |||
| if para.get("value") is not None: | |||
| if para.get("value"): | |||
| args[para["key"]] = para["value"] | |||
| else: | |||
| args[para["key"]] = self._canvas.get_variable_value(para["ref"]) | |||
| @@ -139,4 +139,4 @@ class Invoke(ComponentBase, ABC): | |||
| assert False, self.output() | |||
| def thoughts(self) -> str: | |||
| return "Waiting for the server respond..." | |||
| return "Waiting for the server respond..." | |||