From 352ec8bb0cd01693eb2b295b9b6898e70f109c6e Mon Sep 17 00:00:00 2001 From: Vladimir Ignatov Date: Fri, 19 Jun 2020 10:17:34 -0400 Subject: [PATCH] Small fix --- src/lib/PatientSearch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/PatientSearch.js b/src/lib/PatientSearch.js index 74cddf5..993a352 100644 --- a/src/lib/PatientSearch.js +++ b/src/lib/PatientSearch.js @@ -489,7 +489,7 @@ export default class PatientSearch // Custom params --------------------------------------------------- Object.keys(this.params).forEach(k => { - if(this.params[k].trim()) { + if (String(this.params[k]).trim()) { params.push({ name : k, value: this.params[k] @@ -725,7 +725,7 @@ export default class PatientSearch * the IDs to only contain those that have all the conditions specified * by the user. * @param {Object} response The JSON Conditions bundle response - * @returns {Promise} Array of patient ID strings (can be empty) + * @returns {Promise} Array of patient ID strings (can be empty) */ const handleConditionsResponse = response => {