Fix mutiple retrieval component content (#2006)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
H
2024-08-19 20:01:41 +08:00
committed by GitHub
parent 85f10f84bd
commit 73a03287a5
2 changed files with 9 additions and 6 deletions

View File

@ -448,8 +448,6 @@ class ComponentBase(ABC):
if self.component_name.lower() == "generate" and self.get_component_name(u) == "retrieval":
o = self._canvas.get_component(u)["obj"].output(allow_partial=False)[1]
if o is not None:
if not "".join(o["content"]):
continue
upstream_outs.append(o)
continue
if u not in self._canvas.get_component(self._id)["upstream"]: continue