diff --git a/frontend/src/routes/flows/get/[...path].svelte b/frontend/src/routes/flows/get/[...path].svelte index e717f73a9c..8826c89433 100644 --- a/frontend/src/routes/flows/get/[...path].svelte +++ b/frontend/src/routes/flows/get/[...path].svelte @@ -63,10 +63,16 @@ async function loadSchedule() { try { - schedule = await ScheduleService.getSchedule({ + let exists = await ScheduleService.existsSchedule({ workspace: $workspaceStore ?? '', path }) + if (exists) { + schedule = await ScheduleService.getSchedule({ + workspace: $workspaceStore ?? '', + path + }) + } } catch (e) { console.log('no primary schedule') } @@ -131,16 +137,6 @@ {#if flow} - + + {/if} + {/if}