Skip to content

Commit a0995bf

Browse files
committed
Fix merge issues
1 parent 7358bf8 commit a0995bf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type { ProxyContextValue } from "contexts/ProxyContext";
1414
import { useWebpushNotifications } from "contexts/useWebpushNotifications";
1515
import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata";
1616
import { NotificationsInbox } from "modules/notifications/NotificationsInbox/NotificationsInbox";
17-
import { data } from "pages/TasksPage/TasksPage";
1817
import type { FC } from "react";
1918
import { useQuery } from "react-query";
2019
import { NavLink, useLocation } from "react-router";
@@ -191,15 +190,11 @@ const TasksNavItem: FC<TasksNavItemProps> = ({ user }) => {
191190
process.env.STORYBOOK,
192191
);
193192
const filter = {
194-
user: {
195-
label: user.username,
196-
value: user.username,
197-
avatarUrl: user.avatar_url,
198-
},
193+
username: user.username,
199194
};
200195
const { data: idleCount } = useQuery({
201196
queryKey: ["tasks", filter],
202-
queryFn: () => data.fetchTasks(filter),
197+
queryFn: () => API.experimental.getTasks(filter),
203198
refetchInterval: 1_000 * 60,
204199
enabled: canSeeTasks,
205200
refetchOnWindowFocus: true,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy