Skip to content

Commit

Permalink
Merge pull request LinuxForHealth#8 from SimonRinguette/fix-empty-nam…
Browse files Browse the repository at this point in the history
…e-filter

Trim parameters before compiling PatientSearch
  • Loading branch information
vlad-ignatov authored Jun 19, 2020
2 parents bc64b91 + e46b299 commit f63fcfa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/lib/PatientSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,14 @@ export default class PatientSearch
else {

// Custom params ---------------------------------------------------
Object.keys(this.params).forEach(k => params.push({
name : k,
value: this.params[k]
}))
Object.keys(this.params).forEach(k => {
if(this.params[k].trim()) {
params.push({
name : k,
value: this.params[k]
});
}
});

// sort ------------------------------------------------------------
if (this.sort) {
Expand Down

0 comments on commit f63fcfa

Please sign in to comment.