From 8794bbb9749e04f4010dd4badfce558208fad421 Mon Sep 17 00:00:00 2001 From: jdude700 Date: Mon, 26 Aug 2024 16:35:26 +1000 Subject: [PATCH] add filter for matched variable property --- interface/src/Sidebar/Graph/Variables.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/src/Sidebar/Graph/Variables.tsx b/interface/src/Sidebar/Graph/Variables.tsx index 59b9ea69..d219817d 100644 --- a/interface/src/Sidebar/Graph/Variables.tsx +++ b/interface/src/Sidebar/Graph/Variables.tsx @@ -81,8 +81,11 @@ export function Variables(props: { graph: Graph }) { "Set Graph Variable", "Graph Variable Changed", ].includes(node.schema.name) && - node.schema.properties?.variable + node.schema.properties?.variable && + variable.id === node.state.properties.variable ) { + console.log(variable.id); + console.log(node.state.properties.variable); const serialized = serializeNode(node); serialized.properties!.variable = serializedVariable.id; serialized.schema.id = serialized.schema.id.replace(