Resolve paint code null issue.

This commit is contained in:
Patrick Fic
2025-12-08 09:58:23 -08:00
parent c96e27dd31
commit 84903b1593
3 changed files with 18 additions and 3 deletions

View File

@@ -223,7 +223,9 @@ function JobTombstone({ bodyshop }) {
</Text>
<Text>
{(() => {
const paintCodes = Object.keys(job.vehicle.v_paint_codes)
const paintCodes = Object.keys(
job.vehicle?.v_paint_codes || {}
)
.filter(
(key) =>
job.vehicle.v_paint_codes[key] !== "" &&