mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
improvement: address feedback
This commit is contained in:
@@ -47,7 +47,6 @@ const Content = ({ role, onClose }: ContentProps) => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const handleDuplicateRole = async (form: FormData) => {
|
const handleDuplicateRole = async (form: FormData) => {
|
||||||
try {
|
|
||||||
const newRole = await createRole.mutateAsync({
|
const newRole = await createRole.mutateAsync({
|
||||||
orgId: role.orgId,
|
orgId: role.orgId,
|
||||||
permissions: role.permissions,
|
permissions: role.permissions,
|
||||||
@@ -67,9 +66,6 @@ const Content = ({ role, onClose }: ContentProps) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onClose();
|
onClose();
|
||||||
} catch {
|
|
||||||
// query client creates notification
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
-4
@@ -49,7 +49,6 @@ const Content = ({ role, onClose }: ContentProps) => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const handleDuplicateRole = async (form: FormData) => {
|
const handleDuplicateRole = async (form: FormData) => {
|
||||||
try {
|
|
||||||
const newRole = await createRole.mutateAsync({
|
const newRole = await createRole.mutateAsync({
|
||||||
projectId: currentWorkspace.id,
|
projectId: currentWorkspace.id,
|
||||||
permissions: role.permissions,
|
permissions: role.permissions,
|
||||||
@@ -70,9 +69,6 @@ const Content = ({ role, onClose }: ContentProps) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
onClose();
|
onClose();
|
||||||
} catch {
|
|
||||||
// query client creates notification
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user