Skip to content

Commit

Permalink
Remove unnecessary parts
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Guo <[email protected]>
  • Loading branch information
LilyCaroline17 committed Aug 31, 2024
1 parent 0497aab commit 455a945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions public/pages/QueryInsights/QueryInsights.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect, useState } from 'react';
import { EuiBasicTableColumn, EuiInMemoryTable, EuiLink, EuiSuperDatePicker } from '@elastic/eui';
import hash from 'object-hash';
import { EuiBasicTableColumn, EuiInMemoryTable, EuiSuperDatePicker } from '@elastic/eui';
import { useHistory, useLocation } from 'react-router-dom';
import { CoreStart } from '../../../../../src/core/public';
import { QUERY_INSIGHTS } from '../TopNQueries/TopNQueries';
Expand Down Expand Up @@ -60,13 +59,7 @@ const QueryInsights = ({
// Make into flyout instead?
name: 'Timestamp',
render: (query: any) => {
return (
<span>
<EuiLink onClick={() => history.push(`/query-details/${hash(query)}`)}>
{convertTime(query.timestamp)}
</EuiLink>
</span>
);
return <span>{convertTime(query.timestamp)}</span>;
},
sortable: (query) => query.timestamp,
truncateText: true,
Expand Down
2 changes: 1 addition & 1 deletion public/pages/TopNQueries/TopNQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EuiTab, EuiTabs, EuiTitle, EuiSpacer } from '@elastic/eui';
import QueryInsights from '../QueryInsights/QueryInsights';
import { CoreStart } from '../../../../../src/core/public';

const QUERY_INSIGHTS = '/queryInsights';
export const QUERY_INSIGHTS = '/queryInsights';

export interface MetricSettings {
isEnabled: boolean;
Expand Down

0 comments on commit 455a945

Please sign in to comment.