refactor(flyer-import): improve displayNameDetailed handling
- Simplified conditional logic for displayNameDetailed assignment - Added fallback to preserve existing value when displayNameDetailed is falsy - Reformatted multi-line object initialization for better readability
This commit is contained in:
@@ -889,13 +889,14 @@ export class FlyerImportService {
|
|||||||
bundleWeight: item.bundleWeight,
|
bundleWeight: item.bundleWeight,
|
||||||
isBundle: item.isBundle,
|
isBundle: item.isBundle,
|
||||||
bundleItems: this.sanitizeBundleItems(toStringArray(item.bundleItems)),
|
bundleItems: this.sanitizeBundleItems(toStringArray(item.bundleItems)),
|
||||||
displayNameDetailed:
|
displayNameDetailed:
|
||||||
item.displayNameDetailed ?
|
item.displayNameDetailed
|
||||||
buildDisplayNameDetailed({
|
? buildDisplayNameDetailed({
|
||||||
rawName: item.rawName,
|
rawName: item.rawName,
|
||||||
isBundle: item.isBundle,
|
isBundle: item.isBundle,
|
||||||
bundleItems: this.sanitizeBundleItems(toStringArray(item.bundleItems)),
|
bundleItems: this.sanitizeBundleItems(toStringArray(item.bundleItems)),
|
||||||
}),
|
})
|
||||||
|
: item.displayNameDetailed,
|
||||||
signals: toSignals(item.signals),
|
signals: toSignals(item.signals),
|
||||||
offerText: item.offerText,
|
offerText: item.offerText,
|
||||||
isOffer:
|
isOffer:
|
||||||
|
|||||||
Reference in New Issue
Block a user