Skip to content
Permalink
Browse files

fix: changed search filters to use comma-chaining instead of URL para…

…ms chaining

#2
  • Loading branch information
ayyaruq authored and Supamiu committed Sep 14, 2018
1 parent 8cc5626 commit 4584b97a58eb3ec4252b4bcd5f6e992e09d9012c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/xivapi.service.ts
@@ -55,7 +55,7 @@ export class XivapiService {
let queryParams: HttpParams = this.prepareQueryString(options);
if (options.filters) {
const filterChain: string = options.filters.reduce((chain, filter) => {
return `${chain}${filter.column}${filter.operator}${filter.value}&`;
return `${chain}${filter.column}${filter.operator}${filter.value},`;
}, '').slice(0, -1);
queryParams = queryParams.set('filters', filterChain);
}

0 comments on commit 4584b97

Please sign in to comment.
You can’t perform that action at this time.