mirror of
https://github.com/inventree/inventree-app.git
synced 2025-08-03 03:01:29 +00:00
Similar checks for other widgets
This commit is contained in:
@@ -119,7 +119,11 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
||||
|
||||
// Reload location information
|
||||
if (location != null) {
|
||||
await location?.reload();
|
||||
final bool result = await location?.reload() ?? false;
|
||||
|
||||
if (!result) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
}
|
||||
|
||||
// Request a list of sub-locations under this one
|
||||
|
Reference in New Issue
Block a user