Skip to content

Commit

Permalink
fix: add parseInt to the render plugin as well
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Apr 23, 2020
1 parent df4265a commit 5ce1078
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const PagesList = props => {

let sort = null;
if (vars.sortBy) {
sort = { [vars.sortBy]: vars.sortDirection || -1 };
sort = { [vars.sortBy]: parseInt(vars.sortDirection) || -1 };
}

const variables = {
Expand Down

0 comments on commit 5ce1078

Please sign in to comment.