mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
chore(react): fix some more type errors
This commit is contained in:
@@ -34,7 +34,7 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) {
|
||||
|
||||
for (const searchOption of SEARCH_OPTIONS) {
|
||||
const attr = note.getAttribute(searchOption.attributeType, searchOption.attributeName);
|
||||
if (attr && searchOption.component) {
|
||||
if (attr) {
|
||||
activeOptions.push(searchOption);
|
||||
} else {
|
||||
availableOptions.push(searchOption);
|
||||
|
||||
Reference in New Issue
Block a user