mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Fixed not required field initialization when GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING is disabled (references #1202 )
This commit is contained in:
@@ -314,7 +314,7 @@ if (Grocy.Components.ProductPicker !== undefined)
|
|||||||
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
Grocy.Components.ProductAmountPicker.SetQuantityUnit(barcode.qu_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (barcode.shopping_location_id != null)
|
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING && barcode.shopping_location_id != null)
|
||||||
{
|
{
|
||||||
Grocy.Components.ShoppingLocationPicker.SetId(barcode.shopping_location_id);
|
Grocy.Components.ShoppingLocationPicker.SetId(barcode.shopping_location_id);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user