files object display
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user