Skip to content

Commit

Permalink
fix: refresh after user deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Dec 16, 2024
1 parent ae03d6b commit 66915a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/pages/admin/users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ const users = useFetch<{ count: number, results: User[] }>($apiPath + '/users',
const deleteUserDialog = ref(false)
const deleteUser = withUiNotif(async (user: User) => {
await $fetch(`users/${user.id}`, { method: 'DELETE' })
users.refresh()
})
const currentUser = ref<User>()
Expand Down

0 comments on commit 66915a6

Please sign in to comment.