From 6be6a021015f09451f8a8f50e8116744e9d124d0 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 18 Oct 2022 11:52:55 +0100 Subject: [PATCH] cleared build warnings and format console message --- actions/azurestorage.js | 12 +++++++++--- components/newappeal/aboutyou.js | 2 +- components/newappeal/buildsection.js | 22 ---------------------- 3 files changed, 10 insertions(+), 26 deletions(-) diff --git a/actions/azurestorage.js b/actions/azurestorage.js index b61a0e52..4d76004d 100644 --- a/actions/azurestorage.js +++ b/actions/azurestorage.js @@ -40,7 +40,11 @@ export const createContainer = async (containerName) => { // console.log(`- ${container.name}`); // } - console.log("\n//////////////////\n container name :", containerName); + console.log( + "\n//////////////////\n container name :", + containerName, + "\n//////////////////\n" + ); return containerName; }; @@ -271,7 +275,9 @@ export const downloadAllProgressFiles = async ( progressBlobObj ) => { console.log( - "/////////////////////////\n downloading files: " + progressBlobObj + "/////////////////////////\n downloading files: " + + progressBlobObj + + "\n/////////////////////////\n" ); const creds = new DefaultAzureCredential(); @@ -495,7 +501,7 @@ export const getAllProgressBlobs = async (containerName) => { }); } - console.log("blobObj:", blobObj); + //console.log("blobObj:", blobObj); return blobObj; }; diff --git a/components/newappeal/aboutyou.js b/components/newappeal/aboutyou.js index 24a4c304..4af5e196 100644 --- a/components/newappeal/aboutyou.js +++ b/components/newappeal/aboutyou.js @@ -457,7 +457,7 @@ let AboutYou = (props) => { useEffect(() => { handlePartialUpdate(); - }, [appellantAgentValue]); + }); return (
diff --git a/components/newappeal/buildsection.js b/components/newappeal/buildsection.js index 6bcd7001..e592936e 100644 --- a/components/newappeal/buildsection.js +++ b/components/newappeal/buildsection.js @@ -27,28 +27,6 @@ let BuildSection = (props) => { const [savingStatus, setSavingStatus] = useState(false); - useEffect(() => { - progObj = getProgressObj( - formXML, - titleList, - mandatoryFieldsData, - props - ); - // const lastIndex = progObj - // .map((whichIsLast) => whichIsLast.allFieldsComplete == true) - // .lastIndexOf(true); - - // setCurrentSection(currentSectionSelected + 1); - - // pickupWhereLeftOff == true && setCurrentSection(lastIndex + 1), - // setPickupWhereLeftOff(false); - - // // lastIndex != currentSectionSelected - // // ? (setCurrentSectionSelected(lastIndex), - // // setPickupWhereLeftOff(true)) - // // : setPickupWhereLeftOff(false); - }); - let { t } = useTranslation(); const router = useRouter();