Null safety
This commit is contained in:
parent
d703646132
commit
befbe8f431
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) ...[
|
||||
|
|
|
|||
Loading…
Reference in New Issue