Skip to content

Commit

Permalink
fixes changes made in #196
Browse files Browse the repository at this point in the history
  • Loading branch information
baylessj committed Jan 26, 2020
1 parent 2d83add commit f2dd503
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/blocs/src/repeating/bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ class RepeatsBloc extends Bloc<RepeatsEvent, RepeatsState> {
List<Car> newCars = event.cars
.map((c) => (curRepeats.any((r) => r.cars.contains(c.name)) ? null : c))
.toList();
newCars.removeWhere((c) => c == null);
if (newCars.length == 0) {
print('all cars have repeats, not adding defaults');
return;
Expand Down

0 comments on commit f2dd503

Please sign in to comment.