Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Nastya Rusina <[email protected]>
  • Loading branch information
anrusina committed Apr 14, 2022
1 parent 2ade795 commit e284332
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Workflow/workflowQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export function makeWorkflowQuery(queryClient: QueryClient, id: WorkflowId): Que
// On successful workflow fetch, extract and cache all task templates
// stored on the workflow so that we don't need to fetch them separately
// if future queries reference them.
extractTaskTemplates(workflow).forEach((task) => {
return queryClient.setQueryData([QueryType.TaskTemplate, task.id], task);
});
extractTaskTemplates(workflow).forEach((task) =>
queryClient.setQueryData([QueryType.TaskTemplate, task.id], task),
);

return workflow;
},
Expand Down

0 comments on commit e284332

Please sign in to comment.