[web] Fix error: Cannot read properties of undefined (reading 'startsWith') (#26844)

https://overleaf.sentry.io/issues/6726737555/

GitOrigin-RevId: 488b64c5cb4a75ac4e77c7cdfb47cd3381a9c8eb
This commit is contained in:
Antoine Clausse
2025-07-04 14:03:47 +02:00
committed by Copybot
parent 0c462d45d1
commit 7d5bf2c0dd
@@ -22,7 +22,7 @@ const isPropensityNetworkError = (err: ErrorEvent) => {
}
return Boolean(
errorBreadcrumbs[0].data?.url.startsWith(
errorBreadcrumbs[0]?.data?.url?.startsWith(
'https://analytics.propensity.com/'
)
)