mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
[Manager] Fix "total nodes" count when selecting multiple packs (#4228)
This commit is contained in:
@@ -51,7 +51,11 @@ const getPackNodes = async (pack: components['schemas']['Node']) => {
|
|||||||
if (!pack.latest_version?.version) return []
|
if (!pack.latest_version?.version) return []
|
||||||
const nodeDefs = await getNodeDefs.call({
|
const nodeDefs = await getNodeDefs.call({
|
||||||
packId: pack.id,
|
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 ?? []
|
return nodeDefs?.comfy_nodes ?? []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user