diff --git a/ui/src/components/ContentMapper/index.tsx b/ui/src/components/ContentMapper/index.tsx index 2030ef4b3..67bfcc0a0 100644 --- a/ui/src/components/ContentMapper/index.tsx +++ b/ui/src/components/ContentMapper/index.tsx @@ -910,8 +910,6 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re return OptionsForRow; }; - - const SelectAccessorOfColumn = (data: FieldMapType) => { // Fetch options for the current row from dummy_obj based on backupFieldType( empty stack options) @@ -1042,17 +1040,17 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re }; const adjustedOptions = (OptionsForRow.length === 0 && !contentTypeSchema) ? option : - (OptionsForRow.length > 0 && OptionsForRow.every((item)=>item.isDisabled) && OptionValue.label === dummy_obj[data?.ContentstackFieldType]?.label) ? [] + (OptionsForRow.length > 0 && OptionsForRow.every((item)=>item.isDisabled) && OptionValue.label === dummy_obj[data?.ContentstackFieldType]?.label) ? [] : OptionsForRow.map((option: optionsType) => ({ ...option, isDisabled: selectedOptions.includes(option?.label ?? '') })); - + return (