Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Nov 13, 2024
1 parent af3b5b6 commit cdff8b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client/src/app/(root)/sandbox/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { redirect } from "next/navigation";

import { dehydrate, Hydrate, QueryClient } from "@tanstack/react-query";
import { Session } from "next-auth";

import { client, QUERY_OPTIONS } from "@/lib/queryClient";
import { queryKeys } from "@/lib/queryKeys";
Expand All @@ -8,8 +11,6 @@ import { auth } from "@/app/auth/api/[...nextauth]/config";
import Sandbox from "@/containers/sandbox/user-sandbox";

import { getAuthHeader } from "@/utils/auth-header";
import { redirect } from "next/navigation";
import { Session } from "next-auth";

async function fetchCustomWidget(id: string, session: Session | null) {
try {
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/widget/update-widget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const UpdateWidgetMenu: FC<UpdateWidgetMenuProps> = ({
const updateWidget = useCallback(async () => {
const { status } = await client.users.updateCustomWidget.mutation({
params: {
id: widgetId,
id: Number(widgetId),
userId: session?.user.id as string,
},
body: {
Expand Down

0 comments on commit cdff8b6

Please sign in to comment.