We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01df777 commit 4ca0740Copy full SHA for 4ca0740
src/lib/api.js
@@ -188,12 +188,12 @@ const extractSortby = function (params) {
188
189
sortbyRules = sortbys.map((sortbyRule) => {
190
if (sortbyRule[0] === '-') {
191
- return [{ field: sortbyRule.slice(1), direction: 'desc' }]
+ return { field: sortbyRule.slice(1), direction: 'desc' }
192
}
193
if (sortbyRule[0] === '+') {
194
- return [{ field: sortbyRule.slice(1), direction: 'asc' }]
+ return { field: sortbyRule.slice(1), direction: 'asc' }
195
196
- return [{ field: sortbyRule, direction: 'asc' }]
+ return { field: sortbyRule, direction: 'asc' }
197
})
198
} else {
199
// POST request
0 commit comments