mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Fixes for type casting
This commit is contained in:
parent
9d95cae612
commit
c1152ee286
18 changed files with 294 additions and 228 deletions
|
|
@ -405,7 +405,10 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||
data: {
|
||||
"part": "${part.pk}",
|
||||
},
|
||||
onSuccess: (data) async {
|
||||
onSuccess: (result) async {
|
||||
|
||||
Map<String, dynamic> data = result as Map<String, dynamic>;
|
||||
|
||||
if (data.containsKey("pk")) {
|
||||
var item = InvenTreeStockItem.fromJson(data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue