change(ui): dashboards empty screen on changing visibility filter
This commit is contained in:
parent
a0fa716f10
commit
b4c2dabd7a
1 changed files with 1 additions and 2 deletions
|
|
@ -9,9 +9,8 @@ import { observer } from 'mobx-react-lite';
|
|||
|
||||
function Header() {
|
||||
const { dashboardStore } = useStore();
|
||||
const list = dashboardStore.filteredList;
|
||||
const dashboardsSearch = dashboardStore.filter.query;
|
||||
const showSearch = list.length > 0 || dashboardsSearch;
|
||||
const showSearch = dashboardStore.dashboards.length > 0 || dashboardsSearch;
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-between px-4 pb-2">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue