IO-1777 add check for paint materials threshold.

This commit is contained in:
Patrick Fic
2022-03-18 15:18:48 -07:00
parent 71f161ec27
commit 75743f44e7

View File

@@ -236,7 +236,7 @@ function CalculateRatesTotals(ratesList) {
}
let threshold;
//Check if there is a max for this type.
if (ratesList.materials[property]) {
if (ratesList.materials && ratesList.materials[property]) {
//
if (
ratesList.materials[property].cal_maxdlr &&