Skip to content

Commit c0d01df

Browse files
aman19KCopilot
andauthored
Update packages/contentstack-import/src/import/modules/base-class.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a1d2dac commit c0d01df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/contentstack-import/src/import/modules/base-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export default abstract class BaseClass {
329329
.globalField(globalFieldUid, { api_version: '3.2' })
330330
.fetch()
331331
.then(async (gf) => {
332-
const { uid, ...updatePayload } = cloneDeep(apiData);
332+
const updatePayload = omit(apiData, ['uid']);
333333
Object.assign(gf, updatePayload);
334334
try {
335335
const response = await gf.update();

0 commit comments

Comments
 (0)