fix(editor): Fix NDV close after using input select (#7544)

This commit is contained in:
Csaba Tuncsik
2023-10-30 13:44:19 +01:00
committed by GitHub
parent 784b43330b
commit 3b5e181e66
4 changed files with 14 additions and 3 deletions

View File

@@ -344,7 +344,7 @@ export default defineComponent({
return Math.min(this.runOutputIndex, this.maxOutputRun);
},
maxInputRun(): number {
if (this.inputNode === null && this.activeNode === null) {
if (this.inputNode === null || this.activeNode === null) {
return 0;
}
@@ -355,7 +355,7 @@ export default defineComponent({
const runData: IRunData | null = this.workflowRunData;
if (outputs.filter((output) => output !== NodeConnectionType.Main).length) {
if (outputs.some((output) => output !== NodeConnectionType.Main)) {
node = this.activeNode;
}