mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 18:25:26 +00:00
Pop to the previous context if the stock item is "bad"
This commit is contained in:
@ -31,7 +31,7 @@ class _StockNotesState extends RefreshableState<StockNotesWidget> {
|
||||
String getAppBarTitle(BuildContext context) => L10().stockItemNotes;
|
||||
|
||||
@override
|
||||
Future<void> request() async {
|
||||
Future<void> request(BuildContext context) async {
|
||||
await item.reload();
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ class _StockNotesState extends RefreshableState<StockNotesWidget> {
|
||||
}
|
||||
},
|
||||
onSuccess: (data) async {
|
||||
refresh();
|
||||
refresh(context);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user