Skip to content

Commit

Permalink
fix(contact-form): delete useless item from payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 9, 2024
1 parent 4caee5c commit 3a00afc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/components/contact-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export default function ContactForm({ objectId, objectType }: Props) {
...(data.organization && { organisation: data.organization }),
...(data.fonction && { fonction: data.fonction }),
};

delete payload.organization;
delete payload.fonction;
}

if (api === "contacts") {
Expand Down

0 comments on commit 3a00afc

Please sign in to comment.