From da349472a06c4c6d8507d2d0456f377796356659 Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Thu, 20 Jun 2024 15:21:36 -0700 Subject: [PATCH] remove unused state variable --- server/app/query/view/[id]/page.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/app/query/view/[id]/page.tsx b/server/app/query/view/[id]/page.tsx index 8e17476..b6f43c8 100644 --- a/server/app/query/view/[id]/page.tsx +++ b/server/app/query/view/[id]/page.tsx @@ -24,7 +24,6 @@ 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); // 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);