From a6f3329bb1c4e89ab0aed8e5fbe6e3e2a4cef03d Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Mon, 18 Aug 2025 13:23:31 +0200 Subject: [PATCH] [web] Add `https://analytics.propensity-abm.com/` to the ignored Propensity NetworkError (#27980) GitOrigin-RevId: 42dec70d7e4d1bb1207c35267bb7ef6629152d65 --- .../web/frontend/js/infrastructure/error-reporter.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/web/frontend/js/infrastructure/error-reporter.ts b/services/web/frontend/js/infrastructure/error-reporter.ts index 8a07e4c85b..b1ddef48f3 100644 --- a/services/web/frontend/js/infrastructure/error-reporter.ts +++ b/services/web/frontend/js/infrastructure/error-reporter.ts @@ -21,10 +21,13 @@ const isPropensityNetworkError = (err: ErrorEvent) => { return false } + const breadcrumbUrl = errorBreadcrumbs[0]?.data?.url return Boolean( - errorBreadcrumbs[0]?.data?.url?.startsWith( - 'https://analytics.propensity.com/' - ) + breadcrumbUrl && + [ + 'https://analytics.propensity.com/', + 'https://analytics.propensity-abm.com/', + ].some(url => breadcrumbUrl.startsWith(url)) ) }