Skip to content

Commit

Permalink
sort if there is key
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jun 15, 2022
1 parent 0713fd6 commit 20f291a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function useInlineErrors({
},
},
collapse: { field: 'config_id' },
sort: [{ [sortFieldMap[sortField]]: sortOrder }],
sort: sortFieldMap[sortField] ? [{ [sortFieldMap[sortField]]: sortOrder }] : undefined,
},
},
[syntheticsMonitors, lastRefresh, doFetch, sortField, sortOrder],
Expand Down

0 comments on commit 20f291a

Please sign in to comment.