2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-07-13 09:01:19 +00:00

More cleanup

This commit is contained in:
Oliver
2021-07-15 23:28:55 +10:00
parent d2ce3fadf1
commit 83e29777c2
12 changed files with 23 additions and 60 deletions

View File

@ -188,11 +188,11 @@ class InvenTreeStockItem extends InvenTreeModel {
"result": result.toString(),
};
if (value != null && !value.isEmpty) {
if (value != null && value.isNotEmpty) {
data["value"] = value;
}
if (notes != null && !notes.isEmpty) {
if (notes != null && notes.isNotEmpty) {
data["notes"] = notes;
}
@ -211,8 +211,6 @@ class InvenTreeStockItem extends InvenTreeModel {
// Check that the HTTP status code is HTTP_201_CREATED
return _uploadResponse.statusCode == 201;
}
return false;
}
String get uid => jsondata['uid'] ?? '';