Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
jhqwqmc committed Aug 25, 2024
1 parent 2c83647 commit c1e348a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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).whereNotNull());
item.replaceRange(0, item.length, item.map(mapper).nonNulls());
}
}

Expand Down
6 changes: 3 additions & 3 deletions app/lib/widgets/components/app/cinematic_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ List<Segment> _allSegments(_AllSegmentsRef ref, String entryId) {
final paths = ref.watch(_segmentPathsProvider(entryId));
return paths.keys
.map((path) => ref.watch(_segmentsProvider(entryId, path)))
.whereNotNull()
.nonNulls()
.expand((x) => x)
.toList();
}
Expand Down Expand Up @@ -386,7 +386,7 @@ String _longestEntryName(_LongestEntryNameRef ref) {
final entryIds = ref.watch(_cinematicEntryIdsProvider);
final names = entryIds
.map((entryId) => ref.watch(entryNameProvider(entryId)))
.whereNotNull()
.nonNulls()
.toList() +
["追踪时长"];
return names.isEmpty
Expand Down Expand Up @@ -534,7 +534,7 @@ int _totalSequenceFrames(_TotalSequenceFramesRef ref) {
final entryIds = ref.watch(_cinematicEntryIdsProvider);
final frames = entryIds
.map((entryId) => ref.watch(_endingFrameProvider(entryId)))
.whereNotNull()
.nonNulls()
.toList();
return frames.map((frame) => frame).maxOrNull ?? 0;
}
Expand Down
2 changes: 1 addition & 1 deletion app/lib/widgets/components/app/entry_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Fuzzy<EntryDefinition> _fuzzyEntries(_FuzzyEntriesRef ref) {
blueprint: blueprint,
entry: entry,
);
}).whereNotNull();
}).nonNulls();
}).toList();

return Fuzzy(
Expand Down

0 comments on commit c1e348a

Please sign in to comment.