fixed delete boxes
This commit is contained in:
parent
578d38f187
commit
45932d4af2
|
@ -45,7 +45,7 @@ export default function Boxes({ token }) {
|
|||
axios.delete(`${process.env.REACT_APP_API_URL}/boxes/${id}`, {
|
||||
headers: { Authorization: `Bearer ${token}` }
|
||||
}).then(() => {
|
||||
setBoxes(boxes.filter(box => box.id !== id));
|
||||
setBoxes(boxes.filter(box => box.ID !== id));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue