Skip to content

Commit

Permalink
https://github.com/ilri/OpenRXV/issues/43
Browse files Browse the repository at this point in the history
  • Loading branch information
ShacMiester committed Feb 11, 2021
1 parent d40ee33 commit 127edaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/admin/services/values.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class ValuesService {
constructor(private http: HttpClient) { }

async findByTerm(term = '') {
return await this.http.get(environment.api + '/values/term/' + term).pipe(map((data: any) => {
return await this.http.get(environment.api + '/values/term/' + decodeURI(term)).pipe(map((data: any) => {
data.hits = data.hits.map(element => { return { ...{ id: element._id }, ...element._source } })
return data;
})).toPromise();
Expand Down

0 comments on commit 127edaf

Please sign in to comment.