diff --git a/common/constants/explorer.ts b/common/constants/explorer.ts
index 73a763d27..3a6d1e2ab 100644
--- a/common/constants/explorer.ts
+++ b/common/constants/explorer.ts
@@ -23,7 +23,7 @@ export const SELECTED_FIELDS = 'selectedFields';
export const UNSELECTED_FIELDS = 'unselectedFields';
export const AVAILABLE_FIELDS = 'availableFields';
export const QUERIED_FIELDS = 'queriedFields';
-export const TAB_ID_TXT_PFX = 'query-panel-';
+export const TAB_ID_TXT_PFX = 'explorer-tab-';
export const TAB_TITLE = 'New query';
export const TAB_CHART_TITLE = 'Visualizations';
export const TAB_EVENT_TITLE = 'Events';
@@ -299,4 +299,4 @@ export const UNITS_OF_MEASURE = [
'farenheit (F)',
'meters (m)',
'kilometers (k)',
-]
+];
diff --git a/common/constants/shared.ts b/common/constants/shared.ts
index f87dbf8c1..5a48e6b96 100644
--- a/common/constants/shared.ts
+++ b/common/constants/shared.ts
@@ -192,3 +192,8 @@ export const PLOT_MARGIN = {
};
export const WAITING_TIME_ON_USER_ACTIONS = 300;
+
+export const VISUALIZATION_ERROR = {
+ NO_DATA: 'No data found.',
+ INVALID_DATA: 'Invalid visualization data',
+};
diff --git a/public/components/common/search/search.tsx b/public/components/common/search/search.tsx
index 7767898f2..2f30ab500 100644
--- a/public/components/common/search/search.tsx
+++ b/public/components/common/search/search.tsx
@@ -83,7 +83,6 @@ export const Search = (props: any) => {
stopLive,
setIsLiveTailPopoverOpen,
liveTailName,
- searchError = null,
curVisId,
setSubType,
} = props;
@@ -255,19 +254,6 @@ export const Search = (props: any) => {
>
)}
- {searchError && searchError.error && (
-
-
-
- {JSON.parse(searchError.message).error.details}
-
-
-
- )}
{flyout}
);
diff --git a/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap b/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
index df40c845c..6ef9af13e 100644
--- a/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
+++ b/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
@@ -192,35 +192,35 @@ exports[`Datagrid component Renders data grid component 1`] = `
className="osdDocTableHeader"
>
|
double_per_ip_bytes
|
host
|
ip_count
|
per_ip_bytes
|
resp_code
|
sum_bytes
|
@@ -259,7 +259,7 @@ exports[`Datagrid component Renders data grid component 1`] = `
"timestamp": "2021-05-24 00:00:00",
}
}
- docId="doc_view12"
+ docId="doc_view11"
explorerFields={
Object {
"availableFields": Array [
@@ -374,7 +374,7 @@ exports[`Datagrid component Renders data grid component 1`] = `
"unselectedFields": Array [],
}
}
- key="doc_view12"
+ key="doc_view11"
onFlyoutOpen={[Function]}
selectedCols={
Array [
@@ -410,7 +410,7 @@ exports[`Datagrid component Renders data grid component 1`] = `
>
,
- "id": "doc_viewer_tab_2",
+ "id": "doc_viewer_tab_1",
"name": "Table",
}
}
@@ -60,7 +60,7 @@ exports[`Datagrid Doc viewer component Renders Doc viewer component 1`] = `
,
- "id": "doc_viewer_tab_2",
+ "id": "doc_viewer_tab_1",
"name": "Table",
},
Object {
@@ -82,7 +82,7 @@ exports[`Datagrid Doc viewer component Renders Doc viewer component 1`] = `
,
- "id": "doc_viewer_tab_3",
+ "id": "doc_viewer_tab_2",
"name": "JSON",
},
Object {
@@ -104,7 +104,7 @@ exports[`Datagrid Doc viewer component Renders Doc viewer component 1`] = `
,
- "id": "doc_viewer_tab_4",
+ "id": "doc_viewer_tab_3",
"name":
Traces
@@ -126,9 +126,9 @@ exports[`Datagrid Doc viewer component Renders Doc viewer component 1`] = `
>
| |