mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-13 05:59:25 -03:00
fix(ui): stabilize node selector ordering by type then ID
This commit is contained in:
@@ -998,7 +998,9 @@ function showNodeSelector(nodes, options = {}) {
|
||||
nodeSelectorState.enableSendAll = options.enableSendAll !== false;
|
||||
|
||||
// Generate node list HTML with icons and proper colors
|
||||
const nodeItems = Object.entries(safeNodes).map(([nodeKey, node]) => {
|
||||
const nodeItems = Object.entries(safeNodes)
|
||||
.sort(([, a], [, b]) => a.type - b.type || a.id - b.id)
|
||||
.map(([nodeKey, node]) => {
|
||||
const iconClass = NODE_TYPE_ICONS[node.type] || 'fas fa-question-circle';
|
||||
const bgColor = node.bgcolor || DEFAULT_NODE_COLOR;
|
||||
const graphLabel = node.graph_name ? ` (${node.graph_name})` : '';
|
||||
|
||||
Reference in New Issue
Block a user