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