Skip to content

Instantly share code, notes, and snippets.

@christian-byrne
Created June 25, 2024 22:38
Show Gist options
  • Save christian-byrne/4a74bedda6e798e00f1dacee7f39afa4 to your computer and use it in GitHub Desktop.
Save christian-byrne/4a74bedda6e798e00f1dacee7f39afa4 to your computer and use it in GitHub Desktop.
Patch node names without breaking workflows
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