From 7f84c6681df2fbad8a7c02dda2097f8d3163e291 Mon Sep 17 00:00:00 2001
From: Claudio-Emmolo <113107618+Claudio-Emmolo@users.noreply.github.com>
Date: Thu, 31 Oct 2024 10:33:01 +0100
Subject: [PATCH] searchPublicApi, fix printTypes() function
---
src/searchPublicApi.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/searchPublicApi.js b/src/searchPublicApi.js
index 3455dc1..70e9627 100644
--- a/src/searchPublicApi.js
+++ b/src/searchPublicApi.js
@@ -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 += `