6.8.3: Последний объём из истории в плейсхолдере
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m20s

This commit is contained in:
poignatov
2026-03-10 17:57:03 +03:00
parent eb5e5a5476
commit 786a03bf86
4 changed files with 17 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ function ShoppingItemDetail({ itemId, onClose, onRefresh, onItemCompleted, onNav
throw new Error('Неверное значение объёма')
}
} else {
payload.volume = item.volume_base
payload.volume = item.last_volume ?? item.volume_base
}
const response = await authFetch(`/api/shopping/items/${itemId}/complete`, {
@@ -189,7 +189,7 @@ function ShoppingItemDetail({ itemId, onClose, onRefresh, onItemCompleted, onNav
step="any"
value={volumeValue}
onChange={(e) => setVolumeValue(e.target.value)}
placeholder={item.volume_base?.toString() || '1'}
placeholder={(item.last_volume ?? item.volume_base)?.toString() || '1'}
className="progression-input"
/>
<div className="progression-controls-capsule">