Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Improve offline

François Zaninottoe078558938ae
diff --git a/src/components/atomic-crm/contacts/ContactList.tsx b/src/components/atomic-crm/contacts/ContactList.tsx
index 18d27526..4880d251 100644
--- a/src/components/atomic-crm/contacts/ContactList.tsx
+++ b/src/components/atomic-crm/contacts/ContactList.tsx
@@ -87,6 +87,11 @@ export const ContactListMobile = () => {
perPage={25}
sort={{ field: "last_seen", order: "DESC" }}
exporter={exporter}
+ queryOptions={{
+ onError: () => {
+ /* Disable error notification as ContactListLayoutMobile handles it */
+ },
+ }}
>
<ContactListLayoutMobile />
</InfiniteListBase>
diff --git a/src/components/atomic-crm/contacts/ContactShow.tsx b/src/components/atomic-crm/contacts/ContactShow.tsx
index 56dd2fea..1c484f87 100644
--- a/src/components/atomic-crm/contacts/ContactShow.tsx
+++ b/src/components/atomic-crm/contacts/ContactShow.tsx
@@ -31,7 +31,17 @@ export const ContactShow = () => {
const isMobile = useIsMobile();
return (
- <ShowBase redirectOnError={isMobile ? false : "list"}>
+ <ShowBase
+ queryOptions={{
+ onError: isMobile
+ ? () => {
+ {
+ /** Disable error notification as the content handles offline */
+ }
+ }
+ : undefined,
+ }}
+ >
{isMobile ? <ContactShowContentMobile /> : <ContactShowContent />}
</ShowBase>
);