feat: Clear search results when show is selected

This commit is contained in:
Jarian Cottingham 2026-02-19 09:21:06 -06:00
parent 4869cad916
commit 7a2fb5882c

View File

@ -183,6 +183,11 @@ async function searchShows() {
}
}
// Clear search results when a show is selected
function clearSearchResults() {
searchResultsEl.innerHTML = '';
}
// Test TVDB API connectivity
async function testTVDBAPI() {
try {
@ -249,6 +254,9 @@ async function selectShow(show) {
console.log('Selected show:', show);
currentShow = show;
// Clear search results when a show is selected
clearSearchResults();
// Display show title
document.getElementById('show-title').textContent = show.seriesName || show.name;