Skip to content

Commit

Permalink
Merge pull request #37 from The-3Labs-Team/searchPublicApi,-fix-print…
Browse files Browse the repository at this point in the history
…Types()-function-

searchPublicApi, fix printTypes() function
  • Loading branch information
murdercode authored Nov 11, 2024
2 parents 5e57281 + 7f84c66 commit 00331a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/searchPublicApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ async function printTypes () {
const typesContainer = document.querySelector('#select-type')

const types = await getTypes()

Object.keys(types).forEach(type => {
console.log(types)
types.forEach(type => {
typesContainer.innerHTML += `
<input type="radio" id="${type}" name="type" value="${type}">
<button onclick="document.getElementById('${type}').checked = true;" type="submit">${type}</button>
Expand Down

0 comments on commit 00331a6

Please sign in to comment.