@@ -73,7 +72,7 @@ export function CoordinatorSidebar({ children }: { children?: ReactNode }) {
const { openNewIssue } = useDialogActions();
const location = useLocation();
const handleRecentScroll = useScrollbarWhileScrolling();
- const { data: attention } = useQuery({ queryKey: coordinatorAttentionQueryKey(companyId!), queryFn: () => attentionApi.list(companyId!, { all: true }), enabled: !!companyId });
+ const attentionCount = useCoordinatorAttentionCount(companyId);
const { data: projects } = useQuery({ queryKey: queryKeys.projects.list(companyId!), queryFn: () => projectsApi.list(companyId!), enabled: !!companyId });
// Only project IDs and visit times are kept in memory. Labels and task lists
// always come from the authorized API, scoped to the current person/company.
@@ -106,7 +105,7 @@ export function CoordinatorSidebar({ children }: { children?: ReactNode }) {
{!rail &&
}
-