From e9c6c3fc552b15a2cf3ac97a9069572ac779c7aa Mon Sep 17 00:00:00 2001 From: "Vicente J. Ruiz Jurado" Date: Wed, 8 Aug 2018 08:44:22 +0200 Subject: [PATCH] Added more logs --- lib/fireNotificationList.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fireNotificationList.dart b/lib/fireNotificationList.dart index 1e248ad..54b049d 100644 --- a/lib/fireNotificationList.dart +++ b/lib/fireNotificationList.dart @@ -62,6 +62,7 @@ class _FireNotificationListState extends State { String prefix = ""; if (notif.subsId != null) { + // FIXME (this can fails if you don't have a location for this notif, for instance during tests) YourLocation yl = yourLocations.singleWhere((yl) => yl.id == notif.subsId); prefix = '${yl.description}. '; @@ -143,7 +144,7 @@ class _FireNotificationListState extends State { return new StoreConnector( distinct: true, converter: (store) { - print('New ViewModel of Fires Notifications'); + print('New ViewModel of Fires Notifications (unread: ${store.state.fireNotificationsUnread})'); return new _ViewModel( onDeleteAll: () { store.dispatch(new DeleteAllFireNotificationAction());