fix es search parameter error (#3169)

### What problem does this PR solve?

#3151

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2024-11-04 09:53:41 +08:00
committed by GitHub
parent c06e765a5b
commit 8d9238db14
3 changed files with 10 additions and 7 deletions

View File

@ -194,10 +194,9 @@ class Canvas(ABC):
self.answer.append(c)
else:
if DEBUG: print("RUN: ", c)
if cpn.component_name == "Generate":
cpids = cpn.get_dependent_components()
if any([c not in self.path[-1] for c in cpids]):
continue
cpids = cpn.get_dependent_components()
if any([c not in self.path[-1] for c in cpids]):
continue
ans = cpn.run(self.history, **kwargs)
self.path[-1].append(c)
ran += 1