From 4e69fa0d4856e5f2239542d38e6cf691d94649b6 Mon Sep 17 00:00:00 2001 From: ZhangGe6 Date: Tue, 26 Apr 2022 22:27:26 +0800 Subject: [PATCH] remove output node in js --- static/view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/view.js b/static/view.js index cbc0bc0..dc62c19 100644 --- a/static/view.js +++ b/static/view.js @@ -1014,6 +1014,12 @@ view.Graph = class extends grapher.Graph { } for (const output of graph.outputs) { + // My code + if (this._modelNodeName2State.get(output.name) == 'Deleted') { + // console.log(this._modelNodeName2State.get(node.name)) + continue; + } + const viewOutput = this.createOutput(output); for (const argument of output.arguments) { this.createArgument(argument).to(viewOutput);