Fix for back button
This commit is contained in:
parent
f3dbf0be58
commit
a31f1e3986
|
|
@ -319,7 +319,11 @@ class EntityTopFilterHeader extends StatelessWidget {
|
|||
final entityType = uiState.filterEntityType;
|
||||
if (entityType.hasFullWidthViewer &&
|
||||
state.prefState.isViewerFullScreen(entityType)) {
|
||||
viewEntitiesByType(entityType: entityType);
|
||||
viewEntitiesByType(
|
||||
entityType: entityType,
|
||||
page: state.historyList.length >= 2
|
||||
? state.historyList[1].page
|
||||
: 0);
|
||||
} else {
|
||||
store.dispatch(
|
||||
FilterByEntity(entity: uiState.filterEntity),
|
||||
|
|
|
|||
|
|
@ -135,10 +135,6 @@ class _HistoryListTileState extends State<HistoryListTile> {
|
|||
}
|
||||
} else if (history.id == null) {
|
||||
title = Text(localization.lookup(history.entityType.plural));
|
||||
|
||||
if (!kReleaseMode) {
|
||||
subtitle = Text('Page: ${history.page}');
|
||||
}
|
||||
} else {
|
||||
entity = state.getEntityMap(history.entityType)[history.id] as BaseEntity;
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,6 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
|||
break;
|
||||
default:
|
||||
if ((history.id ?? '').isEmpty) {
|
||||
print('## PAGE: ${history.page}');
|
||||
viewEntitiesByType(
|
||||
entityType: history.entityType,
|
||||
page: history.page);
|
||||
|
|
|
|||
Loading…
Reference in New Issue