mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 20:25:26 +00:00
Pop to the previous context if the stock item is "bad"
This commit is contained in:
@ -26,7 +26,7 @@ class _PartNotesState extends RefreshableState<PartNotesWidget> {
|
||||
final InvenTreePart part;
|
||||
|
||||
@override
|
||||
Future<void> request() async {
|
||||
Future<void> request(BuildContext context) async {
|
||||
await part.reload();
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ class _PartNotesState extends RefreshableState<PartNotesWidget> {
|
||||
}
|
||||
},
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
refresh(context);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user