Skip to content

Commit 1ddb2fa

Browse files
committed
fix:removed console
1 parent 83c0909 commit 1ddb2fa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ui/src/components/DestinationStack/Actions/LoadLanguageMapper.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = ({
441440
const 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 }[]>([]);

ui/src/components/DestinationStack/Actions/LoadStacks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { RootState } from '../../../store';
1515
import { 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';
1919
import { StackResponse } from '../../../services/api/service.interface';
2020
import { 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>

0 commit comments

Comments
 (0)