Skip to content

Commit dc56425

Browse files
committed
refactor:resolved content mapper bug [CMG-520]
1 parent a735c0f commit dc56425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
15211521
isDisabled: true
15221522
}
15231523
: (OptionsForRow?.length === 0 || (OptionsForRow?.length > 0 && OptionsForRow?.every((item)=>item?.isDisabled)
1524-
&& (!existingField[data?.uid] || ! updatedExstingField[data?.uid] ) ) || (OptionsForRow?.length > 0 && data?.contentstackFieldType === "dropdown"))
1524+
&& (!existingField[data?.uid]?.label || ! updatedExstingField[data?.uid]?.label ) ) || (OptionsForRow?.length > 0 && data?.contentstackFieldType === "dropdown"))
15251525
? {
15261526
label: Fields[data?.contentstackFieldType]?.label ?? 'No Option',
15271527
value: Fields[data?.contentstackFieldType]?.label ?? 'No Option',

0 commit comments

Comments
 (0)