Skip to content

Commit

Permalink
Mct7636 (#7645)
Browse files Browse the repository at this point in the history
* setting order for sort to descending if in performance mode and no sort set

---------

Co-authored-by: Andrew Henry <[email protected]>
  • Loading branch information
jvigliotta and akhenry authored Mar 29, 2024
1 parent a3fb84a commit 1671a58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/telemetryTable/TelemetryTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ export default class TelemetryTable extends EventEmitter {

this.removeTelemetryCollection(keyString);

let sortOptions = this.configuration.getConfiguration().sortOptions;
requestOptions.order =
sortOptions?.direction ?? (this.telemetryMode === 'performance' ? 'desc' : 'asc');

if (this.telemetryMode === 'performance') {
requestOptions.size = this.rowLimit;
requestOptions.enforceSize = true;
Expand Down

0 comments on commit 1671a58

Please sign in to comment.