diff --git a/apps/app/components/project/send-project-invitation-modal.tsx b/apps/app/components/project/send-project-invitation-modal.tsx index c2c1f4eda..b74255a2f 100644 --- a/apps/app/components/project/send-project-invitation-modal.tsx +++ b/apps/app/components/project/send-project-invitation-modal.tsx @@ -93,7 +93,6 @@ const SendProjectInvitationModal: React.FC = ({ isOpen, setIsOpen, member .inviteProject(workspaceSlug as string, projectId as string, payload, user) .then(() => { setIsOpen(false); - mutate(PROJECT_MEMBERS(projectId as string)); setToastAlert({ title: "Success", type: "success", @@ -105,6 +104,7 @@ const SendProjectInvitationModal: React.FC = ({ isOpen, setIsOpen, member }) .finally(() => { reset(defaultValues); + mutate(PROJECT_MEMBERS(projectId.toString())); }); };