Skip to content

Commit b452f78

Browse files
committed
feat(mobile/search): search definitions always shown
1 parent 7d1abee commit b452f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import RenameNoteBulkAction from "../bulk_actions/note/rename_note";
2222
import { getErrorMessage } from "../../services/utils";
2323
import "./SearchDefinitionTab.css";
2424

25-
export default function SearchDefinitionTab({ note, ntxId }: TabContext) {
25+
export default function SearchDefinitionTab({ note, ntxId, hidden }: TabContext) {
2626
const parentComponent = useContext(ParentComponent);
2727
const [ searchOptions, setSearchOptions ] = useState<{ availableOptions: SearchOption[], activeOptions: SearchOption[] }>();
2828
const [ error, setError ] = useState<{ message: string }>();
@@ -76,7 +76,7 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) {
7676
return (
7777
<div className="search-definition-widget">
7878
<div className="search-settings">
79-
{note &&
79+
{note && !hidden &&
8080
<table className="search-setting-table">
8181
<tbody>
8282
<tr>

0 commit comments

Comments
 (0)