From b826804ef71f0158393b2142bc40e8295ba3cd8f Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 5 Jan 2022 15:28:03 +0000 Subject: [PATCH] Hide previews behind toggle properly (#43704) --- public/app/features/search/components/DashboardSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/search/components/DashboardSearch.tsx b/public/app/features/search/components/DashboardSearch.tsx index cc054ea67b4..c1213a53f58 100644 --- a/public/app/features/search/components/DashboardSearch.tsx +++ b/public/app/features/search/components/DashboardSearch.tsx @@ -54,7 +54,7 @@ export const DashboardSearch: FC = memo(({ onCloseSearch }) => { editable={false} onToggleSection={onToggleSection} layout={query.layout} - showPreviews={showPreviews} + showPreviews={previewsEnabled && showPreviews} />