diff --git a/components/elements/index.js b/components/elements/index.js index 78f62222..8e18de07 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1064,7 +1064,7 @@ export function NumericField(props) { (showIfHasParentShowValue == parentField) != false && showIfHasParentShowValue; - console.log("parentField:", parentField, showIfHasParentShowValue); + //console.log("parentField:", parentField, showIfHasParentShowValue); return ( <> @@ -1133,7 +1133,7 @@ export function DecimalField(props) { (showIfHasParentShowValue == parentField) != false && showIfHasParentShowValue; - console.log("parentField:", parentField, showIfHasParentShowValue); + //console.log("parentField:", parentField, showIfHasParentShowValue); return ( <> diff --git a/components/newappeal/buildchecksection.js b/components/newappeal/buildchecksection.js index 2d873e26..f1617f87 100644 --- a/components/newappeal/buildchecksection.js +++ b/components/newappeal/buildchecksection.js @@ -140,8 +140,8 @@ let BuildCheckSection = (props) => {
- {props.props.appealType.fileList.files.length > - 0 + {_.has(props.props.appealType.fileList.files) && + props.props.appealType.fileList.files.length > 0 ? props.props.appealType.fileList.files.map( (blob, i) => (
{ var checkHash = req.query.hash; var checkquerypath = "/api/file/getbloblist?container=" + containerName; - console.log(hashAPIPath(checkquerypath), checkHash); - console.log(hashAPIPath(checkquerypath) == "&hash=" + checkHash); + // console.log(hashAPIPath(checkquerypath), checkHash); + // console.log(hashAPIPath(checkquerypath) == "&hash=" + checkHash); if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) { await getBlobs(containerName).then((data) => { diff --git a/pages/newappeal/[appealtypes].js b/pages/newappeal/[appealtypes].js index fc5829ba..977d3689 100644 --- a/pages/newappeal/[appealtypes].js +++ b/pages/newappeal/[appealtypes].js @@ -12,7 +12,7 @@ import { getAppealsTypes, getMandatoryFields, getPickLists, - getFilesFromBlobs, + getFilesFromBlob, } from "../../actions"; import { getProviderConfig } from "../../actions/govgateway"; import Breadcrumbs from "../../components/breadcrumbs"; @@ -222,13 +222,13 @@ export const getServerSideProps = wrapper.getServerSideProps( appealTypeData, mandatoryFieldsData, pickListData, - blobList, + //blobList, ] = await Promise.all([ await getCase(query.id), await getAppealsTypes(), await getMandatoryFields(query.appealtypes), await getPickLists(query.appealtypes), - await getFilesFromBlob(query.casereference), + //await getFilesFromBlob(query.casereference), ]); console.log("anything here", loggedInUser, query.id, caseReferenceData); @@ -255,7 +255,7 @@ export const getServerSideProps = wrapper.getServerSideProps( store.dispatch(setCaseReference(caseReference)); store.dispatch(setForm(xmlStr, mandatoryFieldsData, pickListData)); store.dispatch(setAppealType(appealTypeData)); - store.dispatch(setFilesForAppeal(blobList)); + //store.dispatch(setFilesForAppeal(blobList)); } );