@abi-software/map-side-bar 2.6.3-acupoints.0 → 2.6.3-acupoints.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "2.6.3-acupoints.0",
3
+ "version": "2.6.3-acupoints.1",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -112,24 +112,25 @@ export default {
112
112
  if (input !== this.previousSearch) {
113
113
  if (input === "") {
114
114
  this.results = Object.values(this.entry)
115
- }
116
- const lowerCase = input.toLowerCase()
117
- for (const value of Object.values(this.entry)) {
118
- const searchFields = [
119
- value["Acupoint"],
120
- value["Synonym"],
121
- value["Chinese Name"],
122
- value["English Name"],
123
- value["Reference"],
124
- value["Indications"],
125
- value["Acupuncture Method"],
126
- value["Vasculature"],
127
- value["Innervation"]
128
- ];
129
- const allstrings = searchFields.join();
130
- const myJSON = allstrings.toLowerCase();
131
- if (myJSON.includes(lowerCase)) {
132
- this.results.push(value)
115
+ } else {
116
+ const lowerCase = input.toLowerCase()
117
+ for (const value of Object.values(this.entry)) {
118
+ const searchFields = [
119
+ value["Acupoint"],
120
+ value["Synonym"],
121
+ value["Chinese Name"],
122
+ value["English Name"],
123
+ value["Reference"],
124
+ value["Indications"],
125
+ value["Acupuncture Method"],
126
+ value["Vasculature"],
127
+ value["Innervation"]
128
+ ];
129
+ const allstrings = searchFields.join();
130
+ const myJSON = allstrings.toLowerCase();
131
+ if (myJSON.includes(lowerCase)) {
132
+ this.results.push(value)
133
+ }
133
134
  }
134
135
  }
135
136
  }