diff --git a/src/plugins/data_view_editor/public/components/preview_panel/preview_panel.tsx b/src/plugins/data_view_editor/public/components/preview_panel/preview_panel.tsx
index 62de466889990..44322d92a42b3 100644
--- a/src/plugins/data_view_editor/public/components/preview_panel/preview_panel.tsx
+++ b/src/plugins/data_view_editor/public/components/preview_panel/preview_panel.tsx
@@ -86,17 +86,18 @@ export const PreviewPanel = ({ type, allowHidden, title = '', matchedIndices$ }:
query={title}
/>
- {Boolean(title) && currentlyVisibleIndices.length > 0 && (
- setViewMode(id as ViewMode)}
- />
- )}
+ {Boolean(title) &&
+ (matched.exactMatchedIndices.length > 0 || matched.partialMatchedIndices.length > 0) && (
+ setViewMode(id as ViewMode)}
+ />
+ )}
{indicesListContent}
>
);