Skip to content

Commit c4a3b03

Browse files
committed
Hide Template workflow from session welcome message
1 parent afe4222 commit c4a3b03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/frontend/src/services/queries/use-workflows.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export const workflowKeys = {
1111
export function useOOTBWorkflows(projectName?: string) {
1212
return useQuery({
1313
queryKey: workflowKeys.ootb(projectName),
14-
queryFn: () => workflowsApi.listOOTBWorkflows(projectName),
14+
queryFn: async () => {
15+
const workflows = await workflowsApi.listOOTBWorkflows(projectName);
16+
// Filter out the Template workflow from the default workflows
17+
return workflows.filter((workflow) => workflow.name !== "Template");
18+
},
1519
enabled: !!projectName, // Only fetch when projectName is available
1620
staleTime: 5 * 60 * 1000, // 5 minutes - workflows don't change often
1721
});

0 commit comments

Comments
 (0)