Skip to content

Commit 3c53289

Browse files
authored
fix(items): update quantity display immediately on increment/decrement (#1181)
Use API response data to update item state instead of directly mutating the quantity property. Fixes #1180
1 parent 2a6773d commit 3c53289

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/pages/item/[id]/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@
115115
return;
116116
}
117117
118-
item.value.quantity = newQuantity;
118+
if (resp.data) {
119+
item.value = resp.data;
120+
}
119121
}
120122
121123
type FilteredAttachments = {

0 commit comments

Comments
 (0)