cleared build warnings and format console message

This commit is contained in:
2022-10-18 11:52:55 +01:00
parent 748ecec313
commit 6be6a02101
3 changed files with 10 additions and 26 deletions
+9 -3
View File
@@ -40,7 +40,11 @@ export const createContainer = async (containerName) => {
// console.log(`- ${container.name}`); // console.log(`- ${container.name}`);
// } // }
console.log("\n//////////////////\n container name :", containerName); console.log(
"\n//////////////////\n container name :",
containerName,
"\n//////////////////\n"
);
return containerName; return containerName;
}; };
@@ -271,7 +275,9 @@ export const downloadAllProgressFiles = async (
progressBlobObj progressBlobObj
) => { ) => {
console.log( console.log(
"/////////////////////////\n downloading files: " + progressBlobObj "/////////////////////////\n downloading files: " +
progressBlobObj +
"\n/////////////////////////\n"
); );
const creds = new DefaultAzureCredential(); const creds = new DefaultAzureCredential();
@@ -495,7 +501,7 @@ export const getAllProgressBlobs = async (containerName) => {
}); });
} }
console.log("blobObj:", blobObj); //console.log("blobObj:", blobObj);
return blobObj; return blobObj;
}; };
+1 -1
View File
@@ -457,7 +457,7 @@ let AboutYou = (props) => {
useEffect(() => { useEffect(() => {
handlePartialUpdate(); handlePartialUpdate();
}, [appellantAgentValue]); });
return ( return (
<form onSubmit={handleSubmit(onHandleSubmit)}> <form onSubmit={handleSubmit(onHandleSubmit)}>
-22
View File
@@ -27,28 +27,6 @@ let BuildSection = (props) => {
const [savingStatus, setSavingStatus] = useState(false); 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(); let { t } = useTranslation();
const router = useRouter(); const router = useRouter();