From eaeb74147ac9d4e22748803c7b91385bcba39f29 Mon Sep 17 00:00:00 2001 From: Sayali Joshi Date: Tue, 18 Mar 2025 17:31:36 +0530 Subject: [PATCH] Code refactored --- ui/src/components/AdvancePropertise/index.tsx | 2 -- ui/src/pages/Migration/index.tsx | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ui/src/components/AdvancePropertise/index.tsx b/ui/src/components/AdvancePropertise/index.tsx index 94377872f..28ac6a19d 100644 --- a/ui/src/components/AdvancePropertise/index.tsx +++ b/ui/src/components/AdvancePropertise/index.tsx @@ -298,8 +298,6 @@ const AdvancePropertise = (props: SchemaProps) => { }; const handleDragOver = (e:React.DragEvent, index:number) => { - console.log("inside function"); - e.preventDefault(); document.querySelectorAll('.element-wrapper').forEach((el, i) => { if (i === index) { diff --git a/ui/src/pages/Migration/index.tsx b/ui/src/pages/Migration/index.tsx index 70613b22c..d3ae84103 100644 --- a/ui/src/pages/Migration/index.tsx +++ b/ui/src/pages/Migration/index.tsx @@ -122,7 +122,7 @@ const Migration = () => { } } catch (error) { // return error; - console.log(error); + console.error(error); } }; @@ -138,7 +138,7 @@ const Migration = () => { } } catch (error) { // return error; - console.log(error); + console.error(error); } } @@ -442,7 +442,6 @@ const Migration = () => { Object.values(newMigrationData?.destination_stack?.localeMapping)?.some( (value) => value !== '' || value !== null || value !== undefined ); - console.log(hasNonEmptyMapping); const master_locale:any = {}; const locales: any= {}; @@ -592,7 +591,7 @@ const Migration = () => { } } catch (error) { // return error; - console.log(error); + console.error(error); } }