apisSorter -> tagsSorter
"tags", not "tag", because it sorts the tags themselves, not the content of each tag.
This commit is contained in:
@@ -201,11 +201,11 @@ export const operationsWithTags = createSelector(
|
||||
)
|
||||
|
||||
export const taggedOperations = (state) => ({ getConfigs }) => {
|
||||
let { apisSorter, operationsSorter } = getConfigs()
|
||||
let { tagsSorter, operationsSorter } = getConfigs()
|
||||
|
||||
return operationsWithTags(state)
|
||||
.sort((operationA, operationB) => {
|
||||
let sortFn = (typeof apisSorter === "function" ? apisSorter : sorters.apisSorter[ apisSorter ])
|
||||
let sortFn = (typeof tagsSorter === "function" ? tagsSorter : sorters.tagsSorter[ tagsSorter ])
|
||||
return (!sortFn ? null : sortFn(operationA, operationB))
|
||||
})
|
||||
.map((ops, tag) => {
|
||||
|
||||
Reference in New Issue
Block a user