improvement: address feedback

This commit is contained in:
Scott Wilson
2025-05-14 08:58:29 -07:00
parent 7ed96164e5
commit 7e05bc86a9
2 changed files with 33 additions and 41 deletions
@@ -47,7 +47,6 @@ const Content = ({ role, onClose }: ContentProps) => {
const navigate = useNavigate();
const handleDuplicateRole = async (form: FormData) => {
try {
const newRole = await createRole.mutateAsync({
orgId: role.orgId,
permissions: role.permissions,
@@ -67,9 +66,6 @@ const Content = ({ role, onClose }: ContentProps) => {
});
onClose();
} catch {
// query client creates notification
}
};
return (
@@ -49,7 +49,6 @@ const Content = ({ role, onClose }: ContentProps) => {
const navigate = useNavigate();
const handleDuplicateRole = async (form: FormData) => {
try {
const newRole = await createRole.mutateAsync({
projectId: currentWorkspace.id,
permissions: role.permissions,
@@ -70,9 +69,6 @@ const Content = ({ role, onClose }: ContentProps) => {
});
onClose();
} catch {
// query client creates notification
}
};
return (