Bug: menubar search is only focuses if not focused before clicked

This commit is contained in:
Hillel Coren 2020-12-10 21:26:10 +02:00
parent 769a92e79e
commit 8fa198eaac
1 changed files with 3 additions and 1 deletions

View File

@ -438,7 +438,9 @@ class _DrawerTileState extends State<DrawerTile> {
}
store.dispatch(ViewDashboard(
navigator: Navigator.of(context),
filter: uiState.filter == '' ? null : ''));
filter: uiState.mainRoute == 'dashboard' && uiState.filter == ''
? null
: ''));
},
);
} else if (userCompany.canCreate(widget.entityType)) {