From 5c8e873b1289f35901a8e4e8383c144e2362069f Mon Sep 17 00:00:00 2001 From: Antony Date: Thu, 7 Dec 2023 18:53:05 +0530 Subject: [PATCH] Fix: Extension code change reverted --- .../contentstack-import/src/import/modules/extensions.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/contentstack-import/src/import/modules/extensions.ts b/packages/contentstack-import/src/import/modules/extensions.ts index 1b28c199a8..22ce73dbb9 100644 --- a/packages/contentstack-import/src/import/modules/extensions.ts +++ b/packages/contentstack-import/src/import/modules/extensions.ts @@ -83,12 +83,7 @@ export default class ImportExtensions extends BaseClass { return; } - const apiContent = []; - - for (const [uid, content] of Object.entries(this.extensions)) { - (content as Record).uid = uid; - apiContent.push(content); - } + const apiContent = values(this.extensions); const onSuccess = ({ response, apiData: { uid, title } = { uid: null, title: '' } }: any) => { this.extSuccess.push(response);