Set default location for part

- Used as "default" when creating new StockItem for that part
This commit is contained in:
Oliver committed 2021-09-29 00:24:21 +10:00
1 parent baa197c68c
commit cbb668687e
3 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -395,7 +395,7 @@ class APIFormField {
// Render a "related field" based on the "model" type
// Convert to JSON
Map<String, dynamic> data = item as Map<String, dynamic>;
var data = Map<String, dynamic>.from((item ?? {}) as Map);
switch (model) {
case "part":