From d4c790f27445f4fa0fa8d99050ab5b3813a4ac77 Mon Sep 17 00:00:00 2001 From: Vishwa Gaurav <81325730+VishwaGauravIn@users.noreply.github.com> Date: Wed, 29 Jun 2022 15:53:07 +0530 Subject: [PATCH] minor fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6594618..c7db421 100644 --- a/index.js +++ b/index.js @@ -114,7 +114,7 @@ Query.prototype.url = function (start) { if (this.getRemoteFilter() !== "") query += `&f_WT=${this.getRemoteFilter()}`; if (this.getJobType() !== "") query += `&f_JT=${this.getJobType()}`; query += `&start=${start}`; - query += `&sortBy=${this.getSortBy}`; + if (this.sortBy !== "") query += `&sortBy=${this.getSortBy}`; return encodeURI(query); };