From 99d8449fc8de3f4e14093a55f07fc7c2ae31fcd1 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 8 Dec 2023 20:25:36 +0800 Subject: [PATCH] Fix add item modal not being able to select other SKUs --- src/Components/AddItemModal/AddItemModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/AddItemModal/AddItemModal.tsx b/src/Components/AddItemModal/AddItemModal.tsx index 76ea5b6..09931d2 100644 --- a/src/Components/AddItemModal/AddItemModal.tsx +++ b/src/Components/AddItemModal/AddItemModal.tsx @@ -34,7 +34,7 @@ export default function AddItemModal() { if (equipments.data) { setItem({ ...item, equipment: equipments.data[0].id }); } - }, [equipments.data, item]); + }, [equipments.data]); if (equipments.isLoading) { return (