From 18aa549e1fd3ee3a74c154c3e16873bbeb44719e Mon Sep 17 00:00:00 2001 From: Dominique Clarke Date: Tue, 19 Apr 2022 22:53:29 -0400 Subject: [PATCH] [Uptime] monitor management - adjust sort field map for inline monitor errors (#130606) * uptime - monitor management - adjust sort field map for inline monitor errors * add additional field to sortFieldMap --- .../components/monitor_management/hooks/use_inline_errors.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/uptime/public/components/monitor_management/hooks/use_inline_errors.ts b/x-pack/plugins/uptime/public/components/monitor_management/hooks/use_inline_errors.ts index ae9c5d20345a9..adc07853a93cd 100644 --- a/x-pack/plugins/uptime/public/components/monitor_management/hooks/use_inline_errors.ts +++ b/x-pack/plugins/uptime/public/components/monitor_management/hooks/use_inline_errors.ts @@ -17,8 +17,9 @@ import { useInlineErrorsCount } from './use_inline_errors_count'; import { SYNTHETICS_INDEX_PATTERN } from '../../../../common/constants'; const sortFieldMap: Record = { - name: 'monitor.name', - urls: 'url.full', + ['name.keyword']: 'monitor.name', + ['urls.keyword']: 'url.full', + ['type.keyword']: 'monitor.type', '@timestamp': '@timestamp', };