Skip to content

Commit

Permalink
更新 entry.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
jhqwqmc committed Aug 25, 2024
1 parent 4c52ad5 commit 32de894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/models/entry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class Entry {
}
}
if (item is List) {
item.replaceRange(0, item.length, item.map(mapper).where((element) => true));
item.replaceRange(0, item.length, item.map(mapper).where((element) => element != null).toList());
}
}

Expand All @@ -287,7 +287,7 @@ class Entry {
}
}
if (item is List) {
final index = last.asInt;
final index = int.tryParse(last);
if (index == null || index < 0 || index >= item.length) {
return;
}
Expand Down

0 comments on commit 32de894

Please sign in to comment.