From 45d1c51d8d66a1c4f0d13268b08d337a0fa22886 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Tue, 19 Dec 2023 01:48:31 -0500 Subject: [PATCH] hide search field and find similar button when semantic search is disabled --- web-old/src/routes/Events.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web-old/src/routes/Events.jsx b/web-old/src/routes/Events.jsx index d0dd86b57..8462188fe 100644 --- a/web-old/src/routes/Events.jsx +++ b/web-old/src/routes/Events.jsx @@ -393,9 +393,11 @@ export default function Events({ path, ...props }) { return (
Events -
- onChangeSearchText(text)} /> -
+ {config.semantic_search.enabled && ( +
+ onChangeSearchText(text)} /> +
+ )}