Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions ui/src/components/ContentMapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,16 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re
});
setTableData(updatedRows);
setSelectedEntries(updatedRows);

const dropdownChangeState: INewMigration = {
...newMigrationData,
content_mapping: {
...newMigrationData?.content_mapping,
isDropDownChanged: true,
otherCmsTitle: otherCmsTitle
}
}
dispatch(updateNewMigrationData((dropdownChangeState)));
};

const handleDropDownChange = (value: FieldTypes) => {
Expand Down Expand Up @@ -884,18 +894,14 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re

if(index > -1){
selectedOptions.splice(index,1 );

}
delete existingField[item?.uid]

}
}
else{


else {
setIsFieldDeleted(false);
}



setExistingField((prevOptions: ExistingFieldType) => ({
Expand Down Expand Up @@ -957,7 +963,8 @@ const ContentMapper = forwardRef(({projectData}: ContentMapperComponentProps, re
...newMigrationData,
content_mapping: {
...newMigrationData?.content_mapping,
isDropDownChanged: true
isDropDownChanged: true,
otherCmsTitle: otherCmsTitle
}
}
dispatch(updateNewMigrationData((dropdownChangeState)));
Expand Down
8 changes: 5 additions & 3 deletions ui/src/components/DestinationStack/Actions/LoadStacks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ const LoadStacks = (props: LoadFileFormatProps) => {
useEffect(() => {
newMigrationDataRef.current = newMigrationData;
}, [newMigrationData]);
useEffect(()=>{

useEffect(() => {
if(!isEmptyString(newMigrationData?.destination_stack?.selectedStack?.value)){
setSelectedStack(newMigrationData?.destination_stack?.selectedStack);
}
setAllStack(newMigrationData?.destination_stack?.stackArray)
// setAllStack(newMigrationData?.destination_stack?.stackArray)

},[newMigrationData?.destination_stack?.selectedStack])

//Handle new stack details
const handleOnSave = async (data: Stack) => {

Expand Down Expand Up @@ -274,7 +276,7 @@ const LoadStacks = (props: LoadFileFormatProps) => {

isClearable={newMigrationData?.destination_stack?.stackArray?.length > 0 && !emptyStackValue ? true : false }
// hideSelectedOptions={true}
isDisabled={props?.stepComponentProps?.isSummary || false}
// isDisabled={props?.stepComponentProps?.isSummary || false}
error={isLoading ? false : isError ? true : false }
width="600px"
hasAddOption={true}
Expand Down