This commit is contained in:
Geriano
2022-07-18 18:11:11 +07:00
parent 9489538849
commit c61635a85f

View File

@@ -42,11 +42,11 @@ const detach = async (role, permission, refresh) => {
showCancelButton: true,
})
if (!response.isConfirmed) return
if (!response.isConfirmed)
return
Inertia.on('finish', () => refresh())
return Inertia.patch(route('superuser.role.detach', { role: role.id, permission: permission.id }))
Inertia.patch(route('superuser.role.detach', { role: role.id, permission: permission.id }))
}
const store = () => {