mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
reload garage regardless of error
This commit is contained in:
parent
066e5ca648
commit
c0cfd74fc6
@ -365,11 +365,10 @@ function deleteVehicles(vehicleIds) {
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.post('/Vehicle/DeleteVehicles', { vehicleIds: vehicleIds }, function (data) {
|
||||
if (data) {
|
||||
loadGarage();
|
||||
} else {
|
||||
if (!data) {
|
||||
errorToast(genericErrorMessage());
|
||||
}
|
||||
loadGarage();
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user