Skip to content

Commit

Permalink
searchPublicApi, fix printTypes() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Emmolo committed Oct 31, 2024
1 parent 5e57281 commit 7f84c66
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 7f84c66

Please sign in to comment.