diff --git a/components/case/representation/representationElements.js b/components/case/representation/representationElements.js index 767f7ab3..10e5e7bf 100644 --- a/components/case/representation/representationElements.js +++ b/components/case/representation/representationElements.js @@ -912,7 +912,7 @@ export const RenderFileUpload = (field) => { return URL.createObjectURL(fileObj); break; default: - return "/assets/images/documenttypes/txt.png"; + return "/assets/images/documenttypes/default.png"; break; } }; diff --git a/components/elements/index.js b/components/elements/index.js index c13f29cb..42284bde 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1855,7 +1855,7 @@ const RenderFileUpload = (field) => { return URL.createObjectURL(fileObj); break; default: - return "/assets/images/documenttypes/txt.png"; + return "/assets/images/documenttypes/default.png"; break; } }; diff --git a/components/newappeal/buildcheckrow.js b/components/newappeal/buildcheckrow.js index 237fe47d..cae9eee4 100644 --- a/components/newappeal/buildcheckrow.js +++ b/components/newappeal/buildcheckrow.js @@ -303,7 +303,13 @@ let BuildCheckRow = (props) => { props.props.form["appealForm"].values[ datafieldname[0].value ].map((tenant, index) => { - return ( + console.log( + typeof tenant.pinswg_owners + ); + return typeof tenant.pinswg_owners != + "undefined" || + typeof tenant.pinswg_agriculturaltenantname != + "undefined" ? (
{ )}
+ ) : ( + "" ); }) ) : ( diff --git a/components/pdftemplates/appealRow_pdf.js b/components/pdftemplates/appealRow_pdf.js index c749036c..a0be99fd 100644 --- a/components/pdftemplates/appealRow_pdf.js +++ b/components/pdftemplates/appealRow_pdf.js @@ -473,7 +473,10 @@ export const AppealRow_pdf = (props) => { .value ].map( (tenant, index) => { - return ( + return typeof tenant.pinswg_owners != + "undefined" || + typeof tenant.pinswg_agriculturaltenantname != + "undefined" ? ( { )} + ) : ( + "" ); } )} diff --git a/components/utils/index.js b/components/utils/index.js index 4b0276cb..14af3725 100644 --- a/components/utils/index.js +++ b/components/utils/index.js @@ -445,7 +445,7 @@ export const getThumbnailIconByExtension = (blobName) => { return "/assets/images/documenttypes/png.png"; break; default: - return "/assets/images/documenttypes/txt.png"; + return "/assets/images/documenttypes/default.png"; break; } }; diff --git a/public/assets/images/documenttypes/default.png b/public/assets/images/documenttypes/default.png new file mode 100644 index 00000000..33f095f9 Binary files /dev/null and b/public/assets/images/documenttypes/default.png differ