fix: resolve blank project page from invalid hook usage
This commit is contained in:
parent
a981e189c5
commit
1709905064
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { listen } from "@tauri-apps/api/event";
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useParams, Link, useNavigate } from "react-router-dom";
|
||||
import { getProject, deleteProject, listTrackers, listProcessedTickets } from "../../lib/api";
|
||||
import type { Project, WatchedTracker, ProcessedTicket } from "../../lib/types";
|
||||
|
|
@ -243,8 +243,8 @@ export default function ProjectDashboard() {
|
|||
}
|
||||
|
||||
const recentTickets = tickets.slice(-10).reverse();
|
||||
const activePollList = useMemo(() => Object.entries(activePolls), [activePolls]);
|
||||
const activeAgentList = useMemo(() => Object.values(activeAgents), [activeAgents]);
|
||||
const activePollList = Object.entries(activePolls);
|
||||
const activeAgentList = Object.values(activeAgents);
|
||||
|
||||
return (
|
||||
<div className="p-8">
|
||||
|
|
|
|||
Loading…
Reference in a new issue