feat: add categoryId mapping to product data in CreateInventoryScreen
This commit is contained in:
@@ -159,6 +159,7 @@ class _CreateInventoryScreenState
|
|||||||
(p) => (
|
(p) => (
|
||||||
id: (p['id'] as num).toInt(),
|
id: (p['id'] as num).toInt(),
|
||||||
name: (p['canonicalName'] ?? p['name'] ?? '').toString(),
|
name: (p['canonicalName'] ?? p['name'] ?? '').toString(),
|
||||||
|
categoryId: (p['categoryId'] as num?)?.toInt(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
|
|||||||
Reference in New Issue
Block a user