mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Similar checks for other widgets
This commit is contained in:
parent
6d3ca0fa3d
commit
8ba4a9e678
2 changed files with 10 additions and 2 deletions
|
|
@ -89,7 +89,11 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
|
||||
// Update the category
|
||||
if (category != null) {
|
||||
await category!.reload();
|
||||
final bool result = await category?.reload() ?? false;
|
||||
|
||||
if (!result) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
}
|
||||
|
||||
// Request a list of sub-categories under this one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue