(fix): added missing slash to "loadWorkflow" templates endpoint (#2174)

This commit is contained in:
Alexander Piskun
2025-01-06 18:49:07 +03:00
committed by GitHub
parent 975c2248c5
commit f2eb4e1519

View File

@@ -112,7 +112,7 @@ const loadWorkflow = async (id: string) => {
let json
if (selectedTab.value.moduleName === 'default') {
// Default templates provided by frontend are served on this separate endpoint
json = await fetch(api.fileURL(`templates/${id}.json`)).then((r) =>
json = await fetch(api.fileURL(`/templates/${id}.json`)).then((r) =>
r.json()
)
} else {