Skip to content

Commit

Permalink
Fix system sort on signature page
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuc committed Dec 3, 2021
1 parent 24416d6 commit a6ffb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/SigTable/SigTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const initialState = {
},
rows: []
};
const sortIndices = { 1: 'NAME', 2: 'HAS_MATCH', 3: 'IS_DISABLED', 4: 'HOST_COUNT', 5: 'LAST_MATCH_DATE' };
const sortIndices = { 1: 'NAME', 2: 'HAS_MATCH', 3: 'HOST_COUNT', 4: 'LAST_MATCH_DATE' };
const orderBy = ({ index, direction }) => `${sortIndices[index]}_${direction === SortByDirection.asc ? 'ASC' : 'DESC'}`;

const tableReducer = (state, action) => {
Expand Down

0 comments on commit a6ffb42

Please sign in to comment.