Skip to content

Commit 8afbe36

Browse files
authored
fix(ui_firestore): null-assert count for aggregate query (#246)
1 parent c98ff5a commit 8afbe36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase_ui_firestore/lib/src/table_builder.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ class _Source extends DataTableSource {
871871

872872
@override
873873
int get rowCount {
874-
if (_aggregateSnapshot?.count != null) return _aggregateSnapshot!.count;
874+
if (_aggregateSnapshot?.count != null) return _aggregateSnapshot!.count!;
875875
// Emitting an extra item during load or before reaching the end
876876
// allows the DataTable to show a spinner during load & let the user
877877
// navigate to next page

0 commit comments

Comments
 (0)