Various fixes/features

This commit is contained in:
space-nuko
2023-05-17 20:17:00 -05:00
parent fe3efe1154
commit ab54f771b1
22 changed files with 186 additions and 66 deletions

View File

@@ -206,9 +206,10 @@ export function getNodeInfo(nodeId: ComfyNodeID): string {
if (!app || !app.lGraph)
return String(nodeId);
// TODO subgraph support
const displayNodeID = nodeId ? (nodeId.split("-")[0]) : String(nodeId);
const title = app.lGraph.getNodeByIdRecursive(nodeId)?.title || String(nodeId);
return title + " (" + nodeId + ")"
return title + " (" + displayNodeID + ")"
}
export const debounce = (callback: Function, wait = 250) => {