Payments table null check.

This commit is contained in:
Patrick Fic
2021-03-04 17:15:12 -08:00
parent 86cb1e1fee
commit af949f8d6b

View File

@@ -66,12 +66,12 @@ export default function AccountingPayablesTableComponent({
return record.job.owner ? ( return record.job.owner ? (
<Link to={"/manage/owners/" + record.job.owner.id}> <Link to={"/manage/owners/" + record.job.owner.id}>
{`${record.job.ownr_fn || ""} ${record.job.ownr_ln || ""} ${ {`${record.job.ownr_fn || ""} ${record.job.ownr_ln || ""} ${
record.job.ownr_co_nm record.job.ownr_co_nm || ""
}`} }`}
</Link> </Link>
) : ( ) : (
<span>{`${record.job.ownr_fn || ""} ${record.job.ownr_ln || ""} ${ <span>{`${record.job.ownr_fn || ""} ${record.job.ownr_ln || ""} ${
record.job.ownr_co_nm record.job.ownr_co_nm || ""
}`}</span> }`}</span>
); );
}, },