Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions frontend/src/utils/apiFunctions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import yaml from 'js-yaml'

const apiUrl = (path) => path

Expand Down Expand Up @@ -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' }
Expand All @@ -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
Expand Down