hide owner and tenants if empty on check and pdf
This commit is contained in:
@@ -303,7 +303,13 @@ let BuildCheckRow = (props) => {
|
|||||||
props.props.form["appealForm"].values[
|
props.props.form["appealForm"].values[
|
||||||
datafieldname[0].value
|
datafieldname[0].value
|
||||||
].map((tenant, index) => {
|
].map((tenant, index) => {
|
||||||
return (
|
console.log(
|
||||||
|
typeof tenant.pinswg_owners
|
||||||
|
);
|
||||||
|
return typeof tenant.pinswg_owners !=
|
||||||
|
"undefined" ||
|
||||||
|
typeof tenant.pinswg_agriculturaltenantname !=
|
||||||
|
"undefined" ? (
|
||||||
<div
|
<div
|
||||||
key={index}
|
key={index}
|
||||||
style={{
|
style={{
|
||||||
@@ -321,6 +327,8 @@ let BuildCheckRow = (props) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -473,7 +473,10 @@ export const AppealRow_pdf = (props) => {
|
|||||||
.value
|
.value
|
||||||
].map(
|
].map(
|
||||||
(tenant, index) => {
|
(tenant, index) => {
|
||||||
return (
|
return typeof tenant.pinswg_owners !=
|
||||||
|
"undefined" ||
|
||||||
|
typeof tenant.pinswg_agriculturaltenantname !=
|
||||||
|
"undefined" ? (
|
||||||
<View
|
<View
|
||||||
key={
|
key={
|
||||||
index
|
index
|
||||||
@@ -507,6 +510,8 @@ export const AppealRow_pdf = (props) => {
|
|||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user