From 3a82cd088a8e6164081ca11149ae25daa09b3ff1 Mon Sep 17 00:00:00 2001 From: christoph-maurer Date: Thu, 21 May 2026 13:15:46 +0200 Subject: [PATCH 1/3] Replace outdated `pendingInstitutions` by pendingInstitutionCount` --- frontend/pages/institutions/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/institutions/index.tsx b/frontend/pages/institutions/index.tsx index 783fc8f64..914a176f9 100644 --- a/frontend/pages/institutions/index.tsx +++ b/frontend/pages/institutions/index.tsx @@ -31,8 +31,8 @@ export default function Page() { provides all information about institutions. {currentUser?.roles?.includes(UserRole.Verifier) && - currentUserData?.pendingInstitutions && - currentUserData.pendingInstitutions.totalCount > 0 && ( + currentUserData?.pendingInstitutionCount && + currentUserData.pendingInstitutionCount > 0 && (
Pending Institutions From c6f7a9b17dcb3b0c3cb10629bd403cc66966ead4 Mon Sep 17 00:00:00 2001 From: christoph-maurer Date: Thu, 21 May 2026 14:11:31 +0200 Subject: [PATCH 2/3] Change the type of `value` in `dayjs(value)` to resolve the type error --- frontend/components/DateTimeX.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/components/DateTimeX.tsx b/frontend/components/DateTimeX.tsx index fdd12a3e5..df2e7153b 100644 --- a/frontend/components/DateTimeX.tsx +++ b/frontend/components/DateTimeX.tsx @@ -1,9 +1,8 @@ import { Calendar, Popover } from "antd"; import dayjs from "dayjs"; -import { Scalars } from "../__generated__/graphql"; interface DateTimeProps { - value: Scalars["DateTime"]["output"]; + value: Parameters[0]; } export default function DateTimeX({ value }: DateTimeProps) { From 346e53d88827ce604ea7b17b263f10299400f142 Mon Sep 17 00:00:00 2001 From: christoph-maurer Date: Thu, 21 May 2026 14:27:35 +0200 Subject: [PATCH 3/3] Configure codegen with `string` as base scalar type for `Uuid` to solve type error --- frontend/codegen.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/codegen.ts b/frontend/codegen.ts index bd13804f5..80e9e2a73 100644 --- a/frontend/codegen.ts +++ b/frontend/codegen.ts @@ -10,6 +10,11 @@ const config: CodegenConfig = { // Inspired by https://www.apollographql.com/docs/react/development-testing/graphql-codegen#generating-precompiled-graphql-documents-with-their-type-definitions "./__generated__/graphql.ts": { plugins: ["typescript"], + config: { + scalars: { + Uuid: "string", + }, + }, }, "./queries/": { preset: "near-operation-file",