fix: return empty badge for frontend_only nodes (GREEN)

Special-case 'custom_nodes.frontend_only' in getNodeSource() to return
empty badgeText instead of 'frontend_only'. This prevents frontend-only
nodes (e.g. rgthree Reroute) from showing a misleading 'frontend_only'
badge that obscures user-set titles.

Fixes #9997
This commit is contained in:
bymyself
2026-03-16 05:40:14 +00:00
parent ad7c15f3b5
commit 4f431544cc

View File

@@ -63,6 +63,14 @@ export function getNodeSource(
if (!moduleName) {
return UNKNOWN_NODE_SOURCE
}
if (moduleName === 'frontend_only') {
return {
type: NodeSourceType.CustomNodes,
className: 'comfy-frontend-only',
displayText: 'Frontend Only',
badgeText: ''
}
}
const customNodeName = moduleName.split('@')[0]
const displayName = shortenNodeName(customNodeName)
return {