Adjust dashboard search

This commit is contained in:
Hillel Coren 2020-08-25 22:08:17 +03:00
parent 1b4a228121
commit dbbfc555a7
1 changed files with 3 additions and 2 deletions

View File

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