From c1b56744b7fc21a0a34f5f762072b361b85fb64b Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Tue, 25 Jun 2024 16:08:17 -0700 Subject: [PATCH] remove unused state variable (#55) * remove unused state variable * update Query to QueryPage to prevent overlap with type Query --- server/app/query/view/[id]/page.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/app/query/view/[id]/page.tsx b/server/app/query/view/[id]/page.tsx index 8e17476..23e6994 100644 --- a/server/app/query/view/[id]/page.tsx +++ b/server/app/query/view/[id]/page.tsx @@ -23,8 +23,7 @@ import { import { StatsComponent } from "@/app/query/view/[id]/charts"; import { getQuery, Query } from "@/data/query"; -export default function Query({ params }: { params: { id: string } }) { - const [query, setQuery] = useState(null); +export default function QueryPage({ params }: { params: { id: string } }) { // display controls const [logsHidden, setLogsHidden] = useState(true); const [statsHidden, setStatsHidden] = useState(true); @@ -62,7 +61,6 @@ export default function Query({ params }: { params: { id: string } }) { useEffect(() => { (async () => { const query: Query = await getQuery(params.id); - setQuery(query); let webSockets: WebSocket[] = []; for (const remoteServer of Object.values(IPARemoteServers)) { const loggingWs = remoteServer.openLogSocket(query.uuid, setLogs);