Skip to content

Commit 161ee26

Browse files
committed
fix: cleanup
1 parent 7042119 commit 161ee26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/src/pages/ManagementSettingsPage/CustomRolesPage/CreateEditRolePage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ export const CreateEditRolePage: FC = () => {
5858
try {
5959
if (role) {
6060
await updateOrganizationRoleMutation.mutateAsync(data);
61-
navigate(`/organizations/${organizationName}/roles`);
6261
} else {
6362
await createOrganizationRoleMutation.mutateAsync(data);
64-
navigate(`/organizations/${organizationName}/roles`);
6563
}
64+
navigate(`/organizations/${organizationName}/roles`);
6665
} catch (error) {
6766
displayError(
6867
getErrorMessage(error, "Failed to update custom role"),

0 commit comments

Comments
 (0)