mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Don't apply the barocde qu_id if empty (fixes #1619)
This commit is contained in:
@@ -349,7 +349,7 @@ if (Grocy.Components.ProductPicker !== undefined)
|
||||
$("#display_amount").select();
|
||||
}
|
||||
|
||||
if (barcode.qu_id != null)
|
||||
if (barcode.qu_id != null && !barcode.qu_id.isEmpty())
|
||||
{
|
||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user