files object display

This commit is contained in:
2022-07-19 11:52:50 +01:00
parent 31738d38fa
commit f8ab5c1528
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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 (
<>
+2 -2
View File
@@ -140,8 +140,8 @@ let BuildCheckSection = (props) => {
<dl className="govuk-summary-list govuk-!-margin-bottom-9 at-summary-list">
<div className="govuk-summary-list__row" key={"9999"}>
<dt>
{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) => (
<div
+2 -2
View File
@@ -18,8 +18,8 @@ ApiProxy.get(async (req, res) => {
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) => {
+4 -4
View File
@@ -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));
}
);