Skip to content

Commit

Permalink
Use strings only (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyluu authored Feb 1, 2018
1 parent 075df42 commit ccb5e27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ export class SearchService {
* @param filter
*/
handleFilters(category: string, categoryValue: string, filters: any) {
if (typeof(categoryValue) === 'number') {
categoryValue = String(categoryValue);
}
if (filters.has(category) && filters.get(category).has(categoryValue)) {
filters.get(category).delete(categoryValue);
// wipe out the category if empty
Expand Down

0 comments on commit ccb5e27

Please sign in to comment.