mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
(fix): added missing slash to "loadWorkflow" templates endpoint (#2174)
This commit is contained in:
@@ -112,7 +112,7 @@ const loadWorkflow = async (id: string) => {
|
|||||||
let json
|
let json
|
||||||
if (selectedTab.value.moduleName === 'default') {
|
if (selectedTab.value.moduleName === 'default') {
|
||||||
// Default templates provided by frontend are served on this separate endpoint
|
// 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()
|
r.json()
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user