Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paul019 committed May 27, 2024
1 parent b78b90f commit bc0c49a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/services/agenda_items_service/agenda_items_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ class AgendaItemsService {
.limit(1)
.snapshots()
.map(
(res) =>
res.docs.isEmpty ? null : _agendaItemFromFirebase(res.docs.first),
)
.map((item) => ActiveAgendaItemWrapper(item));
(res) => res.docs.isEmpty
? ActiveAgendaItemWrapper(null)
: ActiveAgendaItemWrapper(
_agendaItemFromFirebase(res.docs.first),
),
);
}

Future<AgendaItemModel?> getActiveAgendaItem() async {
Expand Down

0 comments on commit bc0c49a

Please sign in to comment.