mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 22:44:25 +01:00
only exec for search note type
This commit is contained in:
parent
921b56a89e
commit
6dcc3a7e81
@ -75,7 +75,7 @@ export default function SearchDefinitionTab({ note, ntxId, hidden }: TabContext)
|
||||
|
||||
useEffect(() => {
|
||||
async function autoExecute() {
|
||||
if (!note?.hasLabel('autoExecuteSearch')) {
|
||||
if (note?.type !== 'search' || !note?.hasLabel('autoExecuteSearch')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user