diff --git a/app/Projects/[slug]/page.tsx b/app/Projects/[slug]/page.tsx index 9724d06..ebab8db 100644 --- a/app/Projects/[slug]/page.tsx +++ b/app/Projects/[slug]/page.tsx @@ -45,12 +45,9 @@ const ProjectDetails = () => { if (projectData) { setProject(JSON.parse(projectData as string)); // Remove the project data from the URL without reloading the page - // @ts-expect-error window is defined if (typeof window !== "undefined") { - // @ts-expect-error window is defined const url = new URL(window.location.href); url.searchParams.delete("project"); - // @ts-expect-error window is defined window.history.replaceState({}, "", url.toString()); } } else {