mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Catch some subtle errors (#202)
- Prevent API requests for invalid PK values - Perform checks for invalid PK values at multiple points - Change order of operations in StockDetail widget
This commit is contained in:
parent
61bacefd36
commit
e7c5186823
4 changed files with 50 additions and 13 deletions
|
|
@ -31,7 +31,9 @@ class _StockNotesState extends RefreshableState<StockNotesWidget> {
|
|||
|
||||
@override
|
||||
Future<void> request(BuildContext context) async {
|
||||
await item.reload();
|
||||
if (item.pk > 0) {
|
||||
await item.reload();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue