From e508a44262faa550c3d6502a90fb19c186c88673 Mon Sep 17 00:00:00 2001 From: kyle-ssg Date: Mon, 8 Jul 2024 15:45:00 +0100 Subject: [PATCH] Fix create project link --- frontend/web/components/ProjectManageWidget.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/web/components/ProjectManageWidget.tsx b/frontend/web/components/ProjectManageWidget.tsx index c1073de1cfd3..16bd6b05a74b 100644 --- a/frontend/web/components/ProjectManageWidget.tsx +++ b/frontend/web/components/ProjectManageWidget.tsx @@ -18,7 +18,7 @@ import CreateProjectModal from './modals/CreateProject' type SegmentsPageType = { router: RouterChildContext['router'] - organisationId: string | null + organisationId: number | null } const ProjectManageWidget: FC = ({ @@ -29,7 +29,7 @@ const ProjectManageWidget: FC = ({ const create = Utils.fromParam()?.create const { data: organisations } = useGetOrganisationsQuery({}) const organisation = useMemo( - () => organisations?.results?.find((v) => `${v.id}` === organisationId), + () => organisations?.results?.find((v) => v.id === organisationId), [organisations, organisationId], )