diff --git a/backend/handlers/item_handlers.go b/backend/handlers/item_handlers.go index e950181..07cf97b 100644 --- a/backend/handlers/item_handlers.go +++ b/backend/handlers/item_handlers.go @@ -74,7 +74,6 @@ func UpdateItem(c *gin.Context) { City: input.City, Price: input.Price, Category: input.Category, - Stock: input.Stock, }) c.JSON(http.StatusOK, item) diff --git a/frontend/src/components/AdminItems.jsx b/frontend/src/components/AdminItems.jsx index b249459..7af299e 100644 --- a/frontend/src/components/AdminItems.jsx +++ b/frontend/src/components/AdminItems.jsx @@ -116,6 +116,7 @@ function ItemFormModal({ item, onClose, onSaved }) { placeholder="Остаток" value={form.stock} onChange={handleChange("stock")} + disabled />