Commit ccc3bcad authored by Piotr Gawron's avatar Piotr Gawron
Browse files

empty params are no longer send to api

parent 7b0b7a8e
......@@ -203,7 +203,7 @@ ServerConnector.createGetParams = function(params) {
var result = "";
for (var i = 0; i < sorted.length; i++) {
if (params[sorted[i]] !== undefined) {
if (params[sorted[i]] !== undefined && params[sorted[i]] !== "") {
result += sorted[i] + "=" + params[sorted[i]] + "&";
}
}
......@@ -477,7 +477,6 @@ ServerConnector.getReactionsUrl = function(queryParams, filterParams) {
});
};
ServerConnector.getAliasesUrl = function(queryParams, filterParams) {
var params = {};
params.id = this.idsToString(filterParams.ids);
......@@ -959,7 +958,7 @@ ServerConnector.getReactions = function(params) {
var filterParams = {
ids : params.ids,
columns : params.columns,
participantId:params.participantId,
participantId : params.participantId,
};
return self.getProjectId(params.projectId).then(function(result) {
queryParams.projectId = result;
......
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