mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
chore(api): fetch all hub workflow statuses for testing
Production has no approved data yet — temporarily include all statuses (pending, approved, rejected, deprecated) so the template dialog can be tested locally.
This commit is contained in:
@@ -847,6 +847,8 @@ export class ComfyApi extends EventTarget {
|
||||
const query = new URLSearchParams()
|
||||
query.set('limit', String(limit))
|
||||
if (cursor) query.set('cursor', cursor)
|
||||
// TODO: Remove after production has approved data — fetch all statuses for testing
|
||||
query.set('status', 'pending,approved,rejected,deprecated')
|
||||
const res = await this.fetchApi(`/hub/workflows?${query.toString()}`)
|
||||
if (!res.ok) {
|
||||
throw new Error(`Failed to list hub workflows: ${res.status}`)
|
||||
|
||||
Reference in New Issue
Block a user