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:
@ -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'] ?? '';
|
||||
|
Reference in New Issue
Block a user