diff --git a/packages/contentstack-utilities/src/contentstack-management-sdk.ts b/packages/contentstack-utilities/src/contentstack-management-sdk.ts index eac74141f2..d8f61a3c66 100644 --- a/packages/contentstack-utilities/src/contentstack-management-sdk.ts +++ b/packages/contentstack-utilities/src/contentstack-management-sdk.ts @@ -105,7 +105,7 @@ class ManagementSDKInitiator { } const earlyAccessHeaders = configStore.get(`earlyAccessHeaders`); - if (Object.keys(earlyAccessHeaders).length > 0) { + if (earlyAccessHeaders && Object.keys(earlyAccessHeaders).length > 0) { option.early_access = Object.values(earlyAccessHeaders); }