mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 18:25:26 +00:00
null fix
This commit is contained in:
@ -115,7 +115,9 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
||||
int pk = location?.pk ?? -1;
|
||||
|
||||
// Reload location information
|
||||
await location.reload(context);
|
||||
if (location != null) {
|
||||
await location.reload(context);
|
||||
}
|
||||
|
||||
// Request a list of sub-locations under this one
|
||||
await InvenTreeStockLocation().list(context, filters: {"parent": "$pk"}).then((var locs) {
|
||||
|
Reference in New Issue
Block a user