mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 10:15:32 +00:00
Pop to the previous context if the stock item is "bad"
This commit is contained in:
@ -32,7 +32,7 @@ class _PartImageState extends RefreshableState<PartImageWidget> {
|
||||
final InvenTreePart part;
|
||||
|
||||
@override
|
||||
Future<void> request() async {
|
||||
Future<void> request(BuildContext context) async {
|
||||
await part.reload();
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ class _PartImageState extends RefreshableState<PartImageWidget> {
|
||||
showSnackIcon(L10().uploadFailed, success: false);
|
||||
}
|
||||
|
||||
refresh();
|
||||
refresh(context);
|
||||
}
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user