fix: race condition where race condition where loadMovies/loadSeries was called before

hiddenCategoryIds was populated
This commit is contained in:
Trevor Mears
2026-01-14 15:25:04 -08:00
parent 0a013ec05f
commit 60010cc734
3 changed files with 38 additions and 6 deletions
+3 -3
View File
@@ -27,9 +27,9 @@ class MoviesPage {
init() {
// Source change handler
this.sourceSelect?.addEventListener('change', () => {
this.loadCategories();
this.loadMovies();
this.sourceSelect?.addEventListener('change', async () => {
await this.loadCategories();
await this.loadMovies();
});
// Category change handler
+3 -3
View File
@@ -31,9 +31,9 @@ class SeriesPage {
init() {
// Source change handler
this.sourceSelect?.addEventListener('change', () => {
this.loadCategories();
this.loadSeries();
this.sourceSelect?.addEventListener('change', async () => {
await this.loadCategories();
await this.loadSeries();
});
// Category change handler