Skip to content

The open alternative to Salesforce, designed for AI.

fix(front): suppress Safari 'Cancelled' abort errors as snackbar notifications (#26740)

okxint59f4fb12744d
diff --git a/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx b/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx
index 3848aa905e0..261885056a8 100644
--- a/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx
+++ b/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx
@@ -42,7 +42,9 @@ export const PromiseRejectionEffect = () => {
const isAbortError =
error?.networkError?.name === 'AbortError' ||
- error?.name === 'AbortError';
+ error?.name === 'AbortError' ||
+ (error instanceof TypeError &&
+ error.message.toLowerCase() === 'cancelled');
const isViteStaleChunkLazyLoadingError =
error instanceof Error &&