error-handling #1

Merged
stwhite merged 24 commits from error-handling into main 2024-10-30 15:19:49 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 45932d4af2 - Show all commits

View File

@ -45,7 +45,7 @@ export default function Boxes({ token }) {
axios.delete(`${process.env.REACT_APP_API_URL}/boxes/${id}`, { axios.delete(`${process.env.REACT_APP_API_URL}/boxes/${id}`, {
headers: { Authorization: `Bearer ${token}` } headers: { Authorization: `Bearer ${token}` }
}).then(() => { }).then(() => {
setBoxes(boxes.filter(box => box.id !== id)); setBoxes(boxes.filter(box => box.ID !== id));
}); });
}; };