A full-featured CRM built with React, shadcn/ui, and Supabase.
fix note edit pollutes record with internal values
Jean-Baptiste Kaiser9578e1519e3b
diff --git a/src/components/atomic-crm/notes/Note.tsx b/src/components/atomic-crm/notes/Note.tsxindex 947b4c31..a5176029 100644--- a/src/components/atomic-crm/notes/Note.tsx+++ b/src/components/atomic-crm/notes/Note.tsx@@ -50,11 +50,6 @@ export const Note = ({id: note.id,});- const linkState =- resource === "contactNotes"- ? { reference: "contacts", showStatus: true }- : { reference: "deals" };-const [update, { isPending }] = useUpdate();const [deleteNote] = useDelete(@@ -201,11 +196,7 @@ export const Note = ({);if (isMobile) {- return (- <Link to={editPath} state={{ record: linkState }}>- {content}- </Link>- );+ return <Link to={editPath}>{content}</Link>;}return content;