tengo este error:
script.js: 41 No capturado (en promesa) TypeError: no se pueden leer las propiedades de nulo (leyendo 'agregar') en script.js: 41:12
en el siguiente código
const form = document.querySelector("d-flex"); const glass = document.getElementById("glass"); const select = document.getElementById("episod-select"); const episodes = async () => { // ? trying to bring the api to website and making a select tag for it const res = await axios.get("https://api.tvmaze.com/shows/5/episodes"); return res; }; const data = episodes().then((res) => { console.log(res); for (let i = 0; i < res.data.length; i++) { const ses = res.data[i].season; const epi = res.data[i].number; const option = document.createElement("option"); option.innerText = `S0${ses}E0${epi}`; select.append(option); //! the error is right here ^^ } });