Skip to content

Commit

Permalink
remove unused state variable (#55)
Browse files Browse the repository at this point in the history
* remove unused state variable

* update Query to QueryPage to prevent overlap with type Query
  • Loading branch information
eriktaubeneck authored Jun 25, 2024
1 parent 832dd5f commit c1b5674
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/app/query/view/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Query | null>(null);
export default function QueryPage({ params }: { params: { id: string } }) {
// 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 c1b5674

Please sign in to comment.