From 2b86fd906250578e0931d1c2c23c06f972979a8d 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({