mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Optimized default consume location empty check (references #2053)
This commit is contained in:
parent
6affa01f81
commit
f03bb5eeee
@ -378,7 +378,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
$(".input-group-productamountpicker").trigger("change");
|
||||
|
||||
var defaultLocationId = productDetails.location.id;
|
||||
if (productDetails.product.default_consume_location_id != null && !productDetails.product.default_consume_location_id.isEmpty())
|
||||
if ((productDetails.product.default_consume_location_id || "").isEmpty())
|
||||
{
|
||||
defaultLocationId = productDetails.product.default_consume_location_id;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user