[Manager] Fix "total nodes" count when selecting multiple packs (#4228)

This commit is contained in:
Christian Byrne
2025-06-20 15:20:26 -07:00
committed by GitHub
parent b7693ae9f5
commit 429ab6c365

View File

@@ -51,7 +51,11 @@ const getPackNodes = async (pack: components['schemas']['Node']) => {
if (!pack.latest_version?.version) return []
const nodeDefs = await getNodeDefs.call({
packId: pack.id,
version: pack.latest_version?.version
version: pack.latest_version?.version,
// Fetch all nodes.
// TODO: Render all nodes previews and handle pagination.
// For determining length, use the `totalNumberOfPages` field of response
limit: 8192
})
return nodeDefs?.comfy_nodes ?? []
}