mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 10:15:32 +00:00
Fixes for type casting
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user