feat: add categoryId mapping to product data in CreateInventoryScreen

This commit is contained in:
Nils-Johan Gynther
2026-05-01 02:09:58 +02:00
parent 84dfbc4a52
commit 62667fd76d
@@ -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();