mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
null fix
This commit is contained in:
parent
a62b038faf
commit
4339f70d64
2 changed files with 7 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue