From 99d76f5ee6be3b0edb74df82b86dd59dc8a9121a Mon Sep 17 00:00:00 2001 From: joocer Date: Tue, 26 Mar 2024 21:27:19 -0400 Subject: [PATCH] apollo --- src/static/dist/js/apollo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/static/dist/js/apollo.js b/src/static/dist/js/apollo.js index 5703116..504c8be 100644 --- a/src/static/dist/js/apollo.js +++ b/src/static/dist/js/apollo.js @@ -30,11 +30,10 @@ document.getElementById("assistantButton").addEventListener("click", function () apollo_api.get("v1/relations", null, { token: prompt }).then(data => { console.log(data); - let other_suggestions = "" for (let i = 0; i++; i < data.length) { console.log(data[i]); let item = data[i] - other_suggestions += ` + type_suggestion += `
Related ITems
@@ -44,9 +43,10 @@ document.getElementById("assistantButton").addEventListener("click", function ()

` - } + }; + + suggestion_container.innerHTML = type_suggestion; - suggestion_container.innerHTML = type_suggestion + other_suggestions; }); }