File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
ui/src/components/DestinationStack/Actions Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,6 @@ const Mapper = ({
299299
300300 handleLangugeDelete ( index , locale ) ;
301301 } ;
302- //console.info("cms Locale option ----> ", cmsLocaleOptions, existingLocale)
303302 return (
304303 < >
305304 { cmsLocaleOptions ?. length > 0 ? (
@@ -441,7 +440,6 @@ const Mapper = ({
441440const LanguageMapper = ( { stack} :{ stack : IDropDown } ) => {
442441
443442 const newMigrationData = useSelector ( ( state : RootState ) => state ?. migration ?. newMigrationData ) ;
444- //console.info("again render ", newMigrationData?.destination_stack?.selectedStack?.master_locale)
445443 const [ options , setoptions ] = useState < { label : string ; value : string } [ ] > ( [ ] ) ;
446444 const [ cmsLocaleOptions , setcmsLocaleOptions ] = useState < { label : string ; value : string } [ ] > ( [ ] ) ;
447445 const [ sourceLocales , setsourceLocales ] = useState < { label : string ; value : string } [ ] > ( [ ] ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { RootState } from '../../../store';
1515import { updateNewMigrationData } from '../../../store/slice/migrationDataSlice' ;
1616
1717// Interface
18- import { IDropDown , INewMigration } from '../../../context/app/app.interface' ;
18+ import { DEFAULT_DROPDOWN , IDropDown , INewMigration } from '../../../context/app/app.interface' ;
1919import { StackResponse } from '../../../services/api/service.interface' ;
2020import { Stack } from '../../../components/Common/AddStack/addStack.interface' ;
2121
@@ -373,7 +373,7 @@ const LoadStacks = (props: LoadFileFormatProps) => {
373373 </ Tooltip >
374374 </ div >
375375 < LanguageMapper
376- stack = { selectedStack } />
376+ stack = { selectedStack ?? DEFAULT_DROPDOWN } />
377377 </ div >
378378 ) }
379379 </ div >
You can’t perform that action at this time.
0 commit comments