Skip to content

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

Default the contacts last_seen field to their updated_at field

React-Admin CI912147e194c2
diff --git a/src/components/atomic-crm/misc/useImportFromJson.ts b/src/components/atomic-crm/misc/useImportFromJson.ts
index 125b09f9..562ad258 100644
--- a/src/components/atomic-crm/misc/useImportFromJson.ts
+++ b/src/components/atomic-crm/misc/useImportFromJson.ts
@@ -316,6 +316,7 @@ export const useImportFromJson = (): [
tags: tagsIds,
created_at: dataToImport.created_at,
updated_at: dataToImport.updated_at,
+ last_seen: dataToImport.updated_at,
},
});
idsMaps.contacts[dataToImport.id] = data.id;