From 5f1ba46404c80b370adce4d4ff2952320178b723 Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Mon, 8 Sep 2025 12:51:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20tsconfig.json=20and=20f?= =?UTF-8?q?ix=20errors=20(#1859)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Common/UserMenu.tsx | 2 +- frontend/src/components/ui/provider.tsx | 2 +- frontend/src/main.tsx | 2 +- frontend/src/routes/_layout/admin.tsx | 4 ++-- frontend/src/routes/_layout/items.tsx | 4 ++-- frontend/tsconfig.json | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/Common/UserMenu.tsx b/frontend/src/components/Common/UserMenu.tsx index 5f2b26a..9db1df9 100644 --- a/frontend/src/components/Common/UserMenu.tsx +++ b/frontend/src/components/Common/UserMenu.tsx @@ -26,7 +26,7 @@ const UserMenu = () => { - + { navigate({ - to: "/_layout/admin", - search: { page: page }, + to: "/admin", + search: (prev) => ({ ...prev, page }), }) } diff --git a/frontend/src/routes/_layout/items.tsx b/frontend/src/routes/_layout/items.tsx index 5780b4e..487ede9 100644 --- a/frontend/src/routes/_layout/items.tsx +++ b/frontend/src/routes/_layout/items.tsx @@ -52,8 +52,8 @@ function ItemsTable() { const setPage = (page: number) => { navigate({ - to: "/_layout/items", - search: { page: page }, + to: "/items", + search: (prev) => ({ ...prev, page }), }) } diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 43ca817..bb73d7e 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -21,7 +21,7 @@ "@/*": ["./src/*"] } }, - "include": ["src/**/*.ts", "tests/**/*.ts", "playwright.config.ts"], + "include": ["src", "tests", "playwright.config.ts"], "references": [ { "path": "./tsconfig.node.json"