Skip to content

fix: use insert and delete instead of upsert for custom roles #14252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: cleanup
  • Loading branch information
jaaydenh committed Aug 13, 2024
commit 161ee268dd7d24a14a3b13f3ad6018ec2f09be84
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ export const CreateEditRolePage: FC = () => {
try {
if (role) {
await updateOrganizationRoleMutation.mutateAsync(data);
navigate(`/organizations/${organizationName}/roles`);
} else {
await createOrganizationRoleMutation.mutateAsync(data);
navigate(`/organizations/${organizationName}/roles`);
}
navigate(`/organizations/${organizationName}/roles`);
} catch (error) {
displayError(
getErrorMessage(error, "Failed to update custom role"),
Expand Down
Loading