Complying with CI
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user