fix: remake admin items

This commit is contained in:
2026-06-26 23:47:32 +03:00
parent e55b421ed7
commit 46a0fd20db
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -74,7 +74,6 @@ func UpdateItem(c *gin.Context) {
City: input.City, City: input.City,
Price: input.Price, Price: input.Price,
Category: input.Category, Category: input.Category,
Stock: input.Stock,
}) })
c.JSON(http.StatusOK, item) c.JSON(http.StatusOK, item)
+1
View File
@@ -116,6 +116,7 @@ function ItemFormModal({ item, onClose, onSaved }) {
placeholder="Остаток" placeholder="Остаток"
value={form.stock} value={form.stock}
onChange={handleChange("stock")} onChange={handleChange("stock")}
disabled
/> />
<input <input
className="bg-white/10 rounded px-3 py-2" className="bg-white/10 rounded px-3 py-2"