A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix preview in fakerest demo
Gildas Garcia0f46a91bd211
diff --git a/src/components/atomic-crm/providers/fakerest/dataProvider.ts b/src/components/atomic-crm/providers/fakerest/dataProvider.tsindex 4d48b291..cfba5c16 100644--- a/src/components/atomic-crm/providers/fakerest/dataProvider.ts+++ b/src/components/atomic-crm/providers/fakerest/dataProvider.ts@@ -509,7 +509,7 @@ export const dataProvider = withLifecycleCallbacks(...params,attachments: (params.attachments ?? []).map((attachment) => ({...attachment,- type: attachment.rawFile.type,+ type: attachment.rawFile.type ?? attachment.type,})),};},