diff --git a/public/components/common/search/search.tsx b/public/components/common/search/search.tsx
index f434dae917..295909f282 100644
--- a/public/components/common/search/search.tsx
+++ b/public/components/common/search/search.tsx
@@ -15,11 +15,6 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiIcon,
- EuiModal,
- EuiModalBody,
- EuiModalFooter,
- EuiModalHeader,
- EuiModalHeaderTitle,
EuiPopover,
EuiPopoverFooter,
EuiText,
@@ -139,9 +134,6 @@ export const Search = (props: any) => {
const sqlService = new SQLService(coreRefs.http);
const { application } = coreRefs;
const [nlqInput, setNlqInput] = useState('');
- const [isModalVisible, setIsModalVisible] = useState(false);
- const closeModal = () => setIsModalVisible(false);
- const showModal = () => setIsModalVisible(true);
const showQueryArea = !appLogEvents && coreRefs.queryAssistEnabled;
@@ -205,7 +197,7 @@ export const Search = (props: any) => {
const handleQueryLanguageChange = (lang: string) => {
if (lang === QUERY_LANGUAGE.DQL) {
- showModal();
+ redirectToDiscover();
return;
}
dispatch(
@@ -316,36 +308,6 @@ export const Search = (props: any) => {
application!.navigateToUrl('../app/data-explorer/discover');
};
- let redirectionModal = null;
- if (isModalVisible) {
- redirectionModal = (
- Open in Discover
-