Skip to content

Commit

Permalink
code review change
Browse files Browse the repository at this point in the history
Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed Jul 15, 2024
1 parent 3b906fa commit c6de43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/queries/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const useFetchTaskByID = (taskId?: number) => {
queryKey: [TaskByIDQueryKey, taskId],
queryFn: () => (taskId ? getTaskById(taskId) : null),
select: (task: Task | null) =>
task === null ? null : calculateSyntheticState(task),
!task ? null : calculateSyntheticState(task),
enabled: !!taskId,
});

Expand Down

0 comments on commit c6de43f

Please sign in to comment.