Created
June 25, 2024 22:38
-
-
Save christian-byrne/4a74bedda6e798e00f1dacee7f39afa4 to your computer and use it in GitHub Desktop.
Patch node names without breaking workflows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { app } from "../../scripts/app.js"; | |
app.registerExtension({ | |
name: "Extension Name", | |
beforeConfigureGraph: (graphData, missingNodeTypes) => { | |
for (let node of graphData.nodes) { | |
if (node.type === "Old Name") { | |
node.type = "New Name"; | |
} | |
} | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment