mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
refactor: moved mutate to 'finally' block (#1722)
* refactor: moved mutate to 'finally' block fix: content for success * fix: invited -> added
This commit is contained in:
parent
98d9763f8e
commit
81b1405448
@ -93,7 +93,6 @@ const SendProjectInvitationModal: React.FC<Props> = ({ isOpen, setIsOpen, member
|
|||||||
.inviteProject(workspaceSlug as string, projectId as string, payload, user)
|
.inviteProject(workspaceSlug as string, projectId as string, payload, user)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
setIsOpen(false);
|
setIsOpen(false);
|
||||||
mutate(PROJECT_MEMBERS(projectId as string));
|
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
title: "Success",
|
title: "Success",
|
||||||
type: "success",
|
type: "success",
|
||||||
@ -105,6 +104,7 @@ const SendProjectInvitationModal: React.FC<Props> = ({ isOpen, setIsOpen, member
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
reset(defaultValues);
|
reset(defaultValues);
|
||||||
|
mutate(PROJECT_MEMBERS(projectId.toString()));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user