fix: key operation table title for metrics (#3280)

* fix: key operation table title for metrics

* refactor: memorized the function getTitle

* refactor: made use of config function
This commit is contained in:
Rajat Dabade 2023-08-07 16:29:19 +05:30 committed by GitHub
parent 3d5dc05c08
commit 171cea14e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ import { GlobalReducer } from 'types/reducer/globalTime';
import { v4 as uuid } from 'uuid';
import { IServiceName } from '../types';
import { title } from './config';
import ColumnWithLink from './TableRenderer/ColumnWithLink';
import { getTableColumnRenderer } from './TableRenderer/TableColumnRenderer';
@ -108,6 +109,7 @@ function TopOperationMetrics(): JSX.Element {
return (
<QueryTable
title={title}
query={updatedQuery}
queryTableData={queryTableData}
loading={isLoading}