File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
site/src/modules/dashboard/Navbar Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import type { ProxyContextValue } from "contexts/ProxyContext";
14
14
import { useWebpushNotifications } from "contexts/useWebpushNotifications" ;
15
15
import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata" ;
16
16
import { NotificationsInbox } from "modules/notifications/NotificationsInbox/NotificationsInbox" ;
17
- import { data } from "pages/TasksPage/TasksPage" ;
18
17
import type { FC } from "react" ;
19
18
import { useQuery } from "react-query" ;
20
19
import { NavLink , useLocation } from "react-router" ;
@@ -191,15 +190,11 @@ const TasksNavItem: FC<TasksNavItemProps> = ({ user }) => {
191
190
process . env . STORYBOOK ,
192
191
) ;
193
192
const filter = {
194
- user : {
195
- label : user . username ,
196
- value : user . username ,
197
- avatarUrl : user . avatar_url ,
198
- } ,
193
+ username : user . username ,
199
194
} ;
200
195
const { data : idleCount } = useQuery ( {
201
196
queryKey : [ "tasks" , filter ] ,
202
- queryFn : ( ) => data . fetchTasks ( filter ) ,
197
+ queryFn : ( ) => API . experimental . getTasks ( filter ) ,
203
198
refetchInterval : 1_000 * 60 ,
204
199
enabled : canSeeTasks ,
205
200
refetchOnWindowFocus : true ,
You can’t perform that action at this time.
0 commit comments