mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 17:29:14 +00:00
improvement: address feedback
This commit is contained in:
@@ -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 (
|
||||
|
||||
-4
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user