From 75743f44e7a5c8557144bc89e1901e47f6f38ae8 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 18 Mar 2022 15:18:48 -0700 Subject: [PATCH] IO-1777 add check for paint materials threshold. --- server/job/job-totals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/job/job-totals.js b/server/job/job-totals.js index 35f6d7849..a04650815 100644 --- a/server/job/job-totals.js +++ b/server/job/job-totals.js @@ -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 &&