Skip to content

Commit bc1f4d1

Browse files
committed
Fix sorting by id not working
1 parent 76e357c commit bc1f4d1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

x-pack/legacy/plugins/monitoring/server/routes/api/v1/logstash/pipelines/cluster_pipelines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function logstashClusterPipelinesRoute(server) {
6363
latestNodesCount: nodesCountMetric
6464
};
6565
if (sort) {
66-
sort.field = sortMetricSetMap[sort.field];
66+
sort.field = sortMetricSetMap[sort.field] || sort.field;
6767
}
6868

6969
const { pageOfPipelines, totalPipelineCount } =

x-pack/legacy/plugins/monitoring/server/routes/api/v1/logstash/pipelines/node_pipelines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function logstashNodePipelinesRoute(server) {
6363
latestNodesCount: nodesCountMetric
6464
};
6565
if (sort) {
66-
sort.field = sortMetricSetMap[sort.field];
66+
sort.field = sortMetricSetMap[sort.field] || sort.field;
6767
}
6868

6969
const { pageOfPipelines, totalPipelineCount }

0 commit comments

Comments
 (0)