Skip to content

Commit 62008df

Browse files
committed
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.
1 parent 2fef25f commit 62008df

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/scripts/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ export class ComfyApi extends EventTarget {
847847
const query = new URLSearchParams()
848848
query.set('limit', String(limit))
849849
if (cursor) query.set('cursor', cursor)
850+
// TODO: Remove after production has approved data — fetch all statuses for testing
851+
query.set('status', 'pending,approved,rejected,deprecated')
850852
const res = await this.fetchApi(`/hub/workflows?${query.toString()}`)
851853
if (!res.ok) {
852854
throw new Error(`Failed to list hub workflows: ${res.status}`)

0 commit comments

Comments
 (0)