Skip to content

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

remove useless change

fzaninottoc87b316061bb
diff --git a/src/components/atomic-crm/notes/NoteEditSheet.tsx b/src/components/atomic-crm/notes/NoteEditSheet.tsx
index 72d98a17..e51277ab 100644
--- a/src/components/atomic-crm/notes/NoteEditSheet.tsx
+++ b/src/components/atomic-crm/notes/NoteEditSheet.tsx
@@ -32,7 +32,6 @@ export const NoteEditSheet = ({
}: NoteEditSheetProps) => {
const createPath = useCreatePath();
const translate = useTranslate();
- const getContactRepresentation = useGetRecordRepresentation("contacts");
const getRedirectTo = (record: any) => {
return createPath({
resource: "contacts",
@@ -40,6 +39,7 @@ export const NoteEditSheet = ({
id: record ? record[foreignKeyMapping["contacts"]] : undefined,
});
};
+ const getContactRepresentation = useGetRecordRepresentation("contacts");
return (
<EditSheet