2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Don't display a location tile if the location is null

This commit is contained in:
Oliver Walters
2020-05-27 15:54:16 +10:00
parent 47929c888b
commit 39c0470b2a
2 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
}
// Location information
if (item.locationName.isNotEmpty) {
if ((item.locationId > 0) && (item.locationName != null) && (item.locationName.isNotEmpty)) {
tiles.add(
ListTile(
title: Text("Stock Location"),