fix advanced flow creation due to schema mismatches

This commit is contained in:
dswbx
2025-01-14 16:01:24 +01:00
parent 7b0a41b297
commit a4274423a1
5 changed files with 22 additions and 24 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { uuid } from "core/utils";
import { objectCleanEmpty, uuid } from "core/utils";
import { get } from "lodash-es";
import type { Task, TaskResult } from "./Task";
@@ -34,14 +34,14 @@ export class TaskConnection {
}
toJSON() {
return {
return objectCleanEmpty({
source: this.source.name,
target: this.target.name,
config: {
...this.config,
condition: this.config.condition?.toJSON()
}
};
});
}
}