Skip to content

Commit

Permalink
Fixed sorting for system list (#860)
Browse files Browse the repository at this point in the history
* Fixed sorting for system status

* Fixed sorting for System List on dashboard and System Status Page | WP-228
  • Loading branch information
asimregmi authored Sep 26, 2023
1 parent dea0a49 commit 574a567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/redux/sagas/systemMonitor.sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ function* getSystemMonitor(action) {
const result = yield call(fetchUtil, {
url: '/api/system-monitor/',
});

result.sort((a, b) => a.display_name.localeCompare(b.display_name));

yield put({ type: 'SYSTEM_MONITOR_SUCCESS', payload: result });
} catch (error) {
yield put({
Expand Down

0 comments on commit 574a567

Please sign in to comment.