test, deleted system alert
This commit is contained in:
@@ -412,10 +412,14 @@ export const searchReservation = (chanId) => (dispatch) => {
|
||||
});
|
||||
|
||||
let index = items.findIndex((item) => item.chanId === chanId);
|
||||
|
||||
let deletedIdList = [];
|
||||
if (index !== -1) {
|
||||
dispatch(alertToast("if index is ", index));
|
||||
deletedIdList.push(items[index]._id);
|
||||
dispatch(deleteReservation(deletedIdList));
|
||||
} else {
|
||||
dispatch(alertToast("else index is ", index));
|
||||
}
|
||||
},
|
||||
onFailure: (err) => {
|
||||
|
||||
Reference in New Issue
Block a user