Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Jan 31, 2025
1 parent 2004451 commit 106fa27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface DeleteUserOrRoleProps {
export const DeleteUserOrRole = ({ mutate, data: { name, type } }: DeleteUserOrRoleProps) => {
const onDelete = async (roleName: string) => {
try {
var endpoint = type === "role" ? "roles" : type;
const endpoint = type === "role" ? "roles" : type;
await fetcher({
url: `${appConfig.apiUrl()}/${endpoint}/${roleName}`,
method: "DELETE"
Expand Down

0 comments on commit 106fa27

Please sign in to comment.