From 65d1f2795b5103755ee12c81b192760ddf8b68b4 Mon Sep 17 00:00:00 2001 From: laansdole Date: Thu, 19 Mar 2026 23:37:03 +0700 Subject: [PATCH] fix: YAML workflow list UI now only shows 'No description' --- frontend/src/utils/apiFunctions.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/src/utils/apiFunctions.js b/frontend/src/utils/apiFunctions.js index ba71191ce..90a28a524 100755 --- a/frontend/src/utils/apiFunctions.js +++ b/frontend/src/utils/apiFunctions.js @@ -1,4 +1,3 @@ -import yaml from 'js-yaml' const apiUrl = (path) => path @@ -201,7 +200,7 @@ export async function fetchWorkflowsWithDesc() { const fileData = await response.json() return { name: filename, - description: getYAMLDescription(fileData.content) + description: fileData.description || 'No description' } } catch { return { name: filename, description: 'No description' } @@ -221,14 +220,6 @@ export async function fetchWorkflowsWithDesc() { } } - function getYAMLDescription(content) { - try { - const doc = yaml.load(content) - return doc.graph.description || 'No description' - } catch { - return 'No description' - } - } } // Fetch YAML file content