Skip to content

Commit

Permalink
Merge pull request #853 from isamu/fixAfterConsole
Browse files Browse the repository at this point in the history
fix after console
  • Loading branch information
isamu authored Dec 28, 2024
2 parents 7081590 + 4d1636b commit 0883fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/graphai/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Node {
} else if (this.console.after) {
if (isObject(this.console.after)) {
console.log(
JSON.stringify(resultsOf(this.console.after, { self: this as unknown as ComputedNode | StaticNode }, this.graph.propFunctions, true), null, 2),
JSON.stringify(resultsOf(this.console.after, { self: { result } as unknown as ComputedNode | StaticNode } , this.graph.propFunctions, true), null, 2),
);
} else {
console.log(this.console.after);
Expand Down
2 changes: 1 addition & 1 deletion packages/graphai/tests/units/test_console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const get_graph_data = () => {
},
copy: {
inputs: { data: ":data" },
console: { after: { template: ":data" } },
console: { after: { template: ".data" } },
agent: "copyAgent",
isResult: true,
},
Expand Down

0 comments on commit 0883fc6

Please sign in to comment.