only exec for search note type

This commit is contained in:
contributor 2025-11-22 19:01:03 +02:00
parent 921b56a89e
commit 6dcc3a7e81

View File

@ -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;
}