Skip to content

Commit 00331a6

Browse files
authored
Merge pull request #37 from The-3Labs-Team/searchPublicApi,-fix-printTypes()-function-
searchPublicApi, fix printTypes() function
2 parents 5e57281 + 7f84c66 commit 00331a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/searchPublicApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ async function printTypes () {
159159
const typesContainer = document.querySelector('#select-type')
160160

161161
const types = await getTypes()
162-
163-
Object.keys(types).forEach(type => {
162+
console.log(types)
163+
types.forEach(type => {
164164
typesContainer.innerHTML += `
165165
<input type="radio" id="${type}" name="type" value="${type}">
166166
<button onclick="document.getElementById('${type}').checked = true;" type="submit">${type}</button>

0 commit comments

Comments
 (0)