We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a39b631 commit e94f2ddCopy full SHA for e94f2dd
packages/contentstack-variants/src/import/variant-entries.ts
@@ -383,12 +383,9 @@ export default class VariantEntries extends VariantAdapter<VariantHttpClient<Imp
383
// Check if the current property is already an object with uid and filename
384
const existingValue = currentObj[firstKey];
385
386
- if (
387
- !existingValue ||
388
- (typeof existingValue === 'object' && existingValue.uid && existingValue.filename)
389
- ) {
+ if (existingValue && typeof existingValue === 'object' && existingValue.uid) {
390
currentObj[firstKey] = { uid: existingValue.uid, filename: 'dummy.jpeg' };
391
- }else {
+ } else {
392
currentObj[firstKey] = { uid: currentObj[firstKey], filename: 'dummy.jpeg' };
393
}
394
} else {
0 commit comments