From 1db9bc8480dabdb41264dce3bf5ab20126e81ece Mon Sep 17 00:00:00 2001 From: Alessandro Casazza Date: Thu, 12 Dec 2024 10:37:01 +0100 Subject: [PATCH] Fix sdk organization types --- packages/react-components/src/utils/organization.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-components/src/utils/organization.ts b/packages/react-components/src/utils/organization.ts index fea05fa3..a291999f 100644 --- a/packages/react-components/src/utils/organization.ts +++ b/packages/react-components/src/utils/organization.ts @@ -41,8 +41,7 @@ export async function getOrganizationConfig( const sdk = getSdk(config) const organization = await sdk.organization.retrieve({ fields: { - // @ts-expect-error typing fails here? - organization: ['id', 'config'] + organizations: ['id', 'config'] } }) return getConfig({