diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/SearchModal.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue index 19a9942..a90c945 100644 --- a/src/components/SearchModal.vue +++ b/src/components/SearchModal.vue @@ -65,7 +65,11 @@ export default defineComponent({ fetch(url.toString()) .then(response => response.json()) .then(obj => { - Object.getOwnPropertyNames(obj).forEach(key => {this.tolMap.set(key, obj[key])}); + Object.getOwnPropertyNames(obj).forEach(key => { + if (!this.tolMap.has(key)){ + this.tolMap.set(key, obj[key]) + } + }); this.$emit('search-node', tolNodeName); }) .catch(error => { |
