[v9.5.x] Chore: remove console.log from search (#66128)
Chore: remove console.log from search (#66124)
(cherry picked from commit a6a4326820)
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
This commit is contained in:
co-authored by
Josh Hunt
parent
5f73666f54
commit
c9eff57efe
@@ -52,8 +52,7 @@ export function getIconForKind(kind: string): IconName {
|
||||
|
||||
export function queryResultToViewItem(
|
||||
item: DashboardQueryResult,
|
||||
view?: DataFrameView<DashboardQueryResult>,
|
||||
index = -1
|
||||
view?: DataFrameView<DashboardQueryResult>
|
||||
): DashboardViewItem {
|
||||
const meta = view?.dataFrame.meta?.custom as SearchResultMeta | undefined;
|
||||
|
||||
@@ -68,7 +67,6 @@ export function queryResultToViewItem(
|
||||
// Set enterprise sort value property
|
||||
const sortFieldName = meta?.sortBy;
|
||||
if (sortFieldName) {
|
||||
console.log('have sortFieldName', sortFieldName);
|
||||
const sortFieldValue = item[sortFieldName];
|
||||
if (typeof sortFieldValue === 'string' || typeof sortFieldValue === 'number') {
|
||||
viewItem.sortMetaName = sortFieldName;
|
||||
|
||||
Reference in New Issue
Block a user