mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 06:09:25 +08:00
Fix add item modal not being able to select other SKUs
This commit is contained in:
parent
1ebf396130
commit
99d8449fc8
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export default function AddItemModal() {
|
||||||
if (equipments.data) {
|
if (equipments.data) {
|
||||||
setItem({ ...item, equipment: equipments.data[0].id });
|
setItem({ ...item, equipment: equipments.data[0].id });
|
||||||
}
|
}
|
||||||
}, [equipments.data, item]);
|
}, [equipments.data]);
|
||||||
if (equipments.isLoading) {
|
if (equipments.isLoading) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue