Skip to content

Commit 34f0137

Browse files
committed
fix: pass correct params in logs button
1 parent 92da10e commit 34f0137

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/results/LogsButton.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { type InstanceGetResponse, type InstanceSummary } from "@squonk/data-manager-client";
22

3-
import { useRouter } from "next/router";
4-
53
import { NextLink } from "../NextLink";
64

75
export interface LogsButtonProps {
@@ -16,13 +14,12 @@ export interface LogsButtonProps {
1614
}
1715

1816
export const LogsButton = ({ instanceId, instance }: LogsButtonProps) => {
19-
const { query } = useRouter();
2017
return (
2118
<NextLink
2219
component="button"
2320
href={{
2421
pathname: "/project",
25-
query: { ...query, project: instance.project_id, path: `.${instanceId}` },
22+
query: { project: instance.project_id, path: `.${instanceId}` },
2623
}}
2724
>
2825
Logs

0 commit comments

Comments
 (0)