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:
dante01yoon
2026-03-28 22:15:14 +09:00
parent 06ea82006f
commit 672aedd486

View File

@@ -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}`)