From 777e665bb4a32dae620d054c4b9a7e92daf08184 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Thu, 19 Feb 2026 09:21:06 -0600 Subject: [PATCH] feat: Clear search results when show is selected --- renderer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/renderer.js b/renderer.js index ef7ccfe..2d497ac 100644 --- a/renderer.js +++ b/renderer.js @@ -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;