Null safety

This commit is contained in:
Hillel Coren 2023-10-05 11:32:43 +03:00
parent d703646132
commit befbe8f431
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ class _EntityListState extends State<EntityList> {
if (selectedIndex >= 0) {
_firstRowIndex = (selectedIndex / rowsPerPage).floor() * rowsPerPage;
}
} else {
} else if (state.historyList.isNotEmpty) {
final history = state.historyList.first;
if (history.page != null) {
_firstRowIndex = history.page! * rowsPerPage;

View File

@ -169,9 +169,9 @@ class ClientOverview extends StatelessWidget {
IconMessage(client.privateNotes, iconData: Icons.lock),
ListDivider()
],
if (client.hasGroup)
if (client.hasGroup && group != null)
EntityListTile(
entity: group!,
entity: group,
isFilter: isFilter,
),
for (var customerReference in tokenMap.keys) ...[