Skip to content

Commit

Permalink
Merge pull request #505 from Brendonovich/fix-elevate-graph-variable
Browse files Browse the repository at this point in the history
add filter for matched variable property
  • Loading branch information
jdudetv authored Aug 26, 2024
2 parents 3829a8d + 8794bbb commit e503433
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interface/src/Sidebar/Graph/Variables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e503433

Please sign in to comment.