mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 18:55:34 +00:00
Same thing, but for the "part" display
This commit is contained in:
@ -86,7 +86,14 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> request(BuildContext context) async {
|
Future<void> request(BuildContext context) async {
|
||||||
await part.reload();
|
|
||||||
|
final bool result = await part.reload();
|
||||||
|
|
||||||
|
if (!result || part.pk == -1) {
|
||||||
|
// Part could not be loaded, for some reason
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
}
|
||||||
|
|
||||||
await part.getTestTemplates();
|
await part.getTestTemplates();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user