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

@@ -52,7 +52,20 @@ export default ({ config }) => {
"measurementId": IS_ROME ? "G-G8Z9DRHTZS" : "G-96694D66L2" "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; return newConfig;

View File

@@ -6,7 +6,7 @@
"scheme": "imex-mobile-scheme", "scheme": "imex-mobile-scheme",
"userInterfaceStyle": "automatic", "userInterfaceStyle": "automatic",
"extra": { "extra": {
"expover": "32", "expover": "33",
"eas": { "eas": {
"projectId": "ffe01f3a-d507-4698-82cd-da1f1cad450b" "projectId": "ffe01f3a-d507-4698-82cd-da1f1cad450b"
} }

View File

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