From 6dcc3a7e81aae88f1a339f692ab012656ed425e5 Mon Sep 17 00:00:00 2001 From: contributor Date: Sat, 22 Nov 2025 19:01:03 +0200 Subject: [PATCH] only exec for search note type --- apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx index 78cc24493..21d7dcdc7 100644 --- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx +++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx @@ -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; }