mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: remove console.log from search (#66124)
This commit is contained in:
parent
75f5cb061e
commit
a6a4326820
@ -52,8 +52,7 @@ export function getIconForKind(kind: string): IconName {
|
|||||||
|
|
||||||
export function queryResultToViewItem(
|
export function queryResultToViewItem(
|
||||||
item: DashboardQueryResult,
|
item: DashboardQueryResult,
|
||||||
view?: DataFrameView<DashboardQueryResult>,
|
view?: DataFrameView<DashboardQueryResult>
|
||||||
index = -1
|
|
||||||
): DashboardViewItem {
|
): DashboardViewItem {
|
||||||
const meta = view?.dataFrame.meta?.custom as SearchResultMeta | undefined;
|
const meta = view?.dataFrame.meta?.custom as SearchResultMeta | undefined;
|
||||||
|
|
||||||
@ -68,7 +67,6 @@ export function queryResultToViewItem(
|
|||||||
// Set enterprise sort value property
|
// Set enterprise sort value property
|
||||||
const sortFieldName = meta?.sortBy;
|
const sortFieldName = meta?.sortBy;
|
||||||
if (sortFieldName) {
|
if (sortFieldName) {
|
||||||
console.log('have sortFieldName', sortFieldName);
|
|
||||||
const sortFieldValue = item[sortFieldName];
|
const sortFieldValue = item[sortFieldName];
|
||||||
if (typeof sortFieldValue === 'string' || typeof sortFieldValue === 'number') {
|
if (typeof sortFieldValue === 'string' || typeof sortFieldValue === 'number') {
|
||||||
viewItem.sortMetaName = sortFieldName;
|
viewItem.sortMetaName = sortFieldName;
|
||||||
|
Loading…
Reference in New Issue
Block a user