aboutsummaryrefslogtreecommitdiff
path: root/src/components/SearchModal.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/SearchModal.vue')
-rw-r--r--src/components/SearchModal.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index a90c945..9cc3a29 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -42,7 +42,8 @@ export default defineComponent({
url.search = '?name=' + encodeURIComponent(input.value);
fetch(url.toString())
.then(response => response.json())
- .then(results => {
+ .then(obj => {
+ let results = obj[0];
if (results.length == 0){
input.value = '';
// Trigger failure animation