(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 huchenlei
parent 66f3ccd7a8
commit 3195e8a697

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 {