From 45932d4af29a1188d43277c0aa379bba000e799d Mon Sep 17 00:00:00 2001 From: Steve White Date: Thu, 17 Oct 2024 20:53:09 -0500 Subject: [PATCH] fixed delete boxes --- src/components/Boxes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Boxes.js b/src/components/Boxes.js index b8fbc12..28ecbeb 100644 --- a/src/components/Boxes.js +++ b/src/components/Boxes.js @@ -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)); }); };