mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
.empty() -> []
Turns out .empty() creates an empty list which is fixed length!
This commit is contained in:
parent
dd39b98ae9
commit
40613c9c36
11 changed files with 16 additions and 16 deletions
|
|
@ -296,7 +296,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
)
|
||||
),
|
||||
suggestionsCallback: (pattern) async {
|
||||
var suggestions = List<InvenTreeStockLocation>.empty();
|
||||
List<InvenTreeStockLocation> suggestions = [];
|
||||
|
||||
for (var loc in locations) {
|
||||
if (loc.matchAgainstString(pattern)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue