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 0ea7abd commit a3a518d
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).where((element) => element != null));
item.replaceRange(0, item.length, item.map(mapper).where((element) => true));
}
}

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)))
.where((element) => element != null)
.where((element) => true)392:10
.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)))
.where((element) => element != null)
.where((element) => true)
.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)))
.where((element) => element != null)
.where((element) => true)
.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,
);
}).where((element) => element != null);
}).where((element) => true);
}).toList();

return Fuzzy(
Expand Down

0 comments on commit a3a518d

Please sign in to comment.