From 84903b1593af72f41950599f368858736a9c31a0 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 8 Dec 2025 09:58:23 -0800 Subject: [PATCH] Resolve paint code null issue. --- app.config.js | 15 ++++++++++++++- app.json | 2 +- components/job-tombstone/job-tombstone.jsx | 4 +++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/app.config.js b/app.config.js index 01ba285..8e5a36d 100644 --- a/app.config.js +++ b/app.config.js @@ -52,7 +52,20 @@ export default ({ config }) => { "measurementId": IS_ROME ? "G-G8Z9DRHTZS" : "G-96694D66L2" } } - } + }, + // plugins: config.plugins?.map(plugin => { + // if (Array.isArray(plugin) && plugin[0] === '@sentry/react-native/expo') { + // return [ + // '@sentry/react-native/expo', + // { + // "url": "https://sentry.io/", + // "project": IS_ROME ? "romemobile" : "imexmobile", + // "organization": IS_ROME ? "rome" : "imex" + // } + // ]; + // } + // return plugin; + // }) || [] }) return newConfig; diff --git a/app.json b/app.json index 2020400..ec5cd2e 100644 --- a/app.json +++ b/app.json @@ -6,7 +6,7 @@ "scheme": "imex-mobile-scheme", "userInterfaceStyle": "automatic", "extra": { - "expover": "32", + "expover": "33", "eas": { "projectId": "ffe01f3a-d507-4698-82cd-da1f1cad450b" } diff --git a/components/job-tombstone/job-tombstone.jsx b/components/job-tombstone/job-tombstone.jsx index 9b61bb1..e82aaa3 100644 --- a/components/job-tombstone/job-tombstone.jsx +++ b/components/job-tombstone/job-tombstone.jsx @@ -223,7 +223,9 @@ function JobTombstone({ bodyshop }) { {(() => { - 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] !== "" &&