Complying with CI

This commit is contained in:
Raphaël MARQUES
2017-06-27 16:45:23 +02:00
parent 4fe27786f4
commit 24bc8c4b85
2 changed files with 9 additions and 9 deletions

View File

@@ -198,20 +198,20 @@ export const operationsWithTags = createSelector(
) )
export const taggedOperations = (state) => ({ getConfigs }) => { export const taggedOperations = (state) => ({ getConfigs }) => {
let { apisSorter, operationsSorter } = getConfigs(); let { apisSorter, operationsSorter } = getConfigs()
return operationsWithTags(state) return operationsWithTags(state)
.sort((operationA, operationB) => { .sort((operationA, operationB) => {
let sortFn = (typeof apisSorter === "function" ? apisSorter : sorters.apisSorter[ apisSorter ]); let sortFn = (typeof apisSorter === "function" ? apisSorter : sorters.apisSorter[ apisSorter ])
return (!sortFn ? null : sortFn(operationA, operationB)); return (!sortFn ? null : sortFn(operationA, operationB))
}) })
.map((ops, tag) => { .map((ops, tag) => {
let sortFn = (typeof operationsSorter === "function" ? operationsSorter : sorters.operationsSorter[ operationsSorter ]); let sortFn = (typeof operationsSorter === "function" ? operationsSorter : sorters.operationsSorter[ operationsSorter ])
let operations = (!sortFn ? ops : ops.sort(sortFn)); let operations = (!sortFn ? ops : ops.sort(sortFn))
return Map({ tagDetails: tagDetails(state, tag), operations: operations }); return Map({ tagDetails: tagDetails(state, tag), operations: operations })
}); })
}; }
export const responses = createSelector( export const responses = createSelector(
state, state,

View File

@@ -566,7 +566,7 @@ export const sorters = {
apisSorter: { apisSorter: {
alpha: (a, b) => a.getIn([0, "operation", "tags", 0]).localeCompare(b.getIn([0, "operation", "tags", 0])) alpha: (a, b) => a.getIn([0, "operation", "tags", 0]).localeCompare(b.getIn([0, "operation", "tags", 0]))
} }
}; }
export const buildFormData = (data) => { export const buildFormData = (data) => {
let formArr = [] let formArr = []