Skip to content

Commit

Permalink
apollo
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Mar 27, 2024
1 parent be39ffb commit 99d76f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/static/dist/js/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 += `
<div class="card">
<div class="card-body">
<h5 class="card-title">Related ITems</h5>
Expand All @@ -44,9 +43,10 @@ document.getElementById("assistantButton").addEventListener("click", function ()
</p>
</div>
</div>`
}
};

suggestion_container.innerHTML = type_suggestion;

suggestion_container.innerHTML = type_suggestion + other_suggestions;
});

}
Expand Down

0 comments on commit 99d76f5

Please sign in to comment.