diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b8a0acf..167b834d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.1.0+3 +* `ServiceList` no longer ignores empty `index` events. + # 1.1.0+2 * Updated `ServiceList` to also fire on `index`. diff --git a/lib/angel_client.dart b/lib/angel_client.dart index 0464caf9..0d412330 100644 --- a/lib/angel_client.dart +++ b/lib/angel_client.dart @@ -158,12 +158,10 @@ class ServiceList extends DelegatingList { // Index _subs.add(service.onIndexed.listen((data) { var items = asPaginated == true ? data['data'] : data; - if (items.isNotEmpty) { - this - ..clear() - ..addAll(items); - _onChange.add(this); - } + this + ..clear() + ..addAll(items); + _onChange.add(this); })); // Created diff --git a/pubspec.yaml b/pubspec.yaml index 0b3adafb..6ee4138c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_client -version: 1.1.0+2 +version: 1.1.0+3 description: Client library for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_client