test, deleted system alert

This commit is contained in:
younghoon100.park
2024-07-01 18:28:42 +09:00
parent 435f274334
commit 75fddad16b

View File

@@ -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) => {