mirror of
https://github.com/inventree/inventree-app.git
synced 2025-12-15 08:38:12 +00:00
.empty() -> []
Turns out .empty() creates an empty list which is fixed length!
This commit is contained in:
@@ -307,7 +307,7 @@ class InvenTreeModel {
|
||||
var response = await api.get(URL, params: params);
|
||||
|
||||
// A list of "InvenTreeModel" items
|
||||
List<InvenTreeModel> results = new List<InvenTreeModel>.empty();
|
||||
List<InvenTreeModel> results = [];
|
||||
|
||||
if (response == null) {
|
||||
return results;
|
||||
|
||||
Reference in New Issue
Block a user