We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe4222 commit c4a3b03Copy full SHA for c4a3b03
components/frontend/src/services/queries/use-workflows.ts
@@ -11,7 +11,11 @@ export const workflowKeys = {
11
export function useOOTBWorkflows(projectName?: string) {
12
return useQuery({
13
queryKey: workflowKeys.ootb(projectName),
14
- queryFn: () => workflowsApi.listOOTBWorkflows(projectName),
+ 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
+ },
19
enabled: !!projectName, // Only fetch when projectName is available
20
staleTime: 5 * 60 * 1000, // 5 minutes - workflows don't change often
21
});
0 commit comments