Skip to content

Commit

Permalink
remove unused state variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Jun 21, 2024
1 parent fb521c3 commit da34947
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/app/query/view/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Query | null>(null);
// display controls
const [logsHidden, setLogsHidden] = useState<boolean>(true);
const [statsHidden, setStatsHidden] = useState<boolean>(true);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit da34947

Please sign in to comment.