Skip to content

Commit

Permalink
Merge branch 'master' into gc/fix-sort-old-node
Browse files Browse the repository at this point in the history
  • Loading branch information
gcandal committed Sep 7, 2020
2 parents dd428c1 + 6cfa3f6 commit 8f0d360
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/util/data.js
Expand Up @@ -107,7 +107,8 @@ const _toSort = function(value) {
if (values.length === 1) values.push("descending");
const [name, direction] = values;
if (name === "default") return null;
return [[name, SORT_MAP[direction] || 1]];
values[1] = SORT_MAP[direction] || 1;
return [values];
};

const _findTypes = function(params) {
Expand Down

0 comments on commit 8f0d360

Please sign in to comment.