[Library | Trunk]: Fix get query params if are emptry

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60904 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-04-18 11:41:55 +00:00
parent 6e4b4d5d3b
commit f2d245a86a
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class RouterHelper {
}
public createQueryParamsString(keys:string[],values:string[]){
let obj ="?";
if(!keys || !values || keys.length != values.length){
if(!keys || !values || keys.length != values.length || keys.length === 0){
return "";
}else{
for(let i=0; i< keys.length; i++){