diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index a66cc8fc..299a0958 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -96,6 +96,7 @@ export default { } return; } + //console.log("watch::searchentry - calling do search:"); this.doSearch(); }, errors(val) { @@ -267,6 +268,8 @@ export default { //https://vuejs.org/v2/guide/migration.html#debounce-Param-Attribute-for-v-model-removed //----------------- let vm = this; + let isATwoTermQuery = false; + let queryTerms = []; //NOTE: empty query is valid; it means get the top 100 ordered by template order let emptyQuery = false; if (this.searchEntry == null || this.searchEntry == "") { @@ -275,8 +278,7 @@ export default { //Pre-process the query to validate and send conditionally let val = this.searchEntry; //get the discrete search terms and verify there are max two - let isATwoTermQuery = false; - let queryTerms = []; + if (val.includes(" ")) { queryTerms = val.split(" "); if (queryTerms.length > 2) {