From e19f0b2da95ac0b4930f9a6401607847869f086d Mon Sep 17 00:00:00 2001 From: bymyself Date: Fri, 15 Aug 2025 14:14:03 -0700 Subject: [PATCH] [fix] Add missing await for response.json() calls in template workflows --- src/composables/useTemplateWorkflows.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composables/useTemplateWorkflows.ts b/src/composables/useTemplateWorkflows.ts index 5ad92a8d69..39fd6bd60a 100644 --- a/src/composables/useTemplateWorkflows.ts +++ b/src/composables/useTemplateWorkflows.ts @@ -162,13 +162,13 @@ export function useTemplateWorkflows() { if (sourceModule === 'default') { // Default templates provided by frontend are served as static files const response = await fetch(api.fileURL(`/templates/${id}.json`)) - return response.json() + return await response.json() } else { // Custom node templates served via API const response = await api.fetchApi( `/workflow_templates/${sourceModule}/${id}.json` ) - return response.json() + return await response.json() } }