Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(space): Set default search text to '*'
Browse files Browse the repository at this point in the history
The search text needs to be set to a default value,
as the backend disallows empty search text queries.
  • Loading branch information
VineetReynolds authored and joshuawilson committed Mar 2, 2017
1 parent baa47ab commit b99702f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/spaces/space.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export class SpaceService {
search(searchText: string): Promise<Space[]> {
let url = this.searchSpacesUrl;
let params: URLSearchParams = new URLSearchParams();
if (searchText == '') {
searchText = '*';
}
params.set("q", searchText);

return this.http
Expand Down

0 comments on commit b99702f

Please sign in to comment.