Minor adjusts in savedFiltersSelect.ts

This commit is contained in:
Julio-Oliveira-Encora 2024-05-29 09:21:19 -03:00
parent 4bdb583cf2
commit 52681429fc
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -22,7 +22,7 @@ function handleSavedFilterChange(event: Event): void {
export function initSavedFilterSelect(): void {
const divResults = document.getElementById('results');
if (isTruthy(divResults)) {
const savedFilterSelect = divResults.getElementsByTagName('select')[0];
const savedFilterSelect = document.getElementById('id_filter_id');
if (isTruthy(savedFilterSelect)) {
savedFilterSelect.addEventListener('change', handleSavedFilterChange);
}