diff --git a/assets/controllers/tv_results_controller.js b/assets/controllers/tv_results_controller.js index c45c87d..9e76ece 100644 --- a/assets/controllers/tv_results_controller.js +++ b/assets/controllers/tv_results_controller.js @@ -48,6 +48,7 @@ export default class extends Controller { this.options.forEach((option) => option.querySelector('.download-btn').dataset['title'] = this.titleValue); this.options[0].querySelector('input[type="checkbox"]').checked = true; } else { + this.countTarget.innerText = 0; this.episodeSelectorTarget.disabled = true; } this.loadingIconOutlet.increaseCount(); diff --git a/templates/components/TvEpisodeList.html.twig b/templates/components/TvEpisodeList.html.twig index f2d6731..c408dc3 100644 --- a/templates/components/TvEpisodeList.html.twig +++ b/templates/components/TvEpisodeList.html.twig @@ -33,7 +33,7 @@