[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:
parent
6e4b4d5d3b
commit
f2d245a86a
|
@ -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++){
|
||||
|
|
Loading…
Reference in New Issue