Verified Commit 33331375 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix sorting issue with API requests

parent e334395c
......@@ -68,9 +68,11 @@ export default class Query {
const parsedQuery = {};
Object.keys(query).forEach(key => {
if (Array.isArray(query[key])) {
parsedQuery[key] = query[key];
} else if (key === 'sort') {
parsedQuery[key] = query[key];
if (key === 'sort') {
parsedQuery[key] = query[key].join(',');
} else {
parsedQuery[key] = query[key];
}
} else {
parsedQuery[key] = JSON.stringify(query[key]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment