From 90a5e15bb824b84e5bb60337d6a57a1394090dc6 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Wed, 4 May 2022 01:17:06 +1000
Subject: Add scripts for obtaining/sending/displaying wikipedia descriptions

Add backend/data/enwiki/ directory containing scripts and instructive
READMEs. Adjust some other scripts to generate 'eol_ids' sqlite table
separate from 'names'. Make server respond to /data/desc requests,
and have client TileInfo component display response data.

Also adjust .gitignore entries to be root-relative.
---
 src/components/SearchModal.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/SearchModal.vue')

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
-- 
cgit v1.2.3

