feat: Clear search results when show is selected
This commit is contained in:
parent
987e01945e
commit
777e665bb4
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user