Help! filterTree gives error

Hello, I put it in Spanish and translated with google.
Some time ago I had a code that worked perfectly, it was a drop-down of province, town, postal code, etc.
And now it gives me an error, can you please help me so that now it continues to be operational?
export function searchButton_click(event, $w) {
if ($w(‘#SelectOtrasProf’).value.length === 0) {
filter.filterTree.$and[0] = {}
} else {
filter.filterTree.$and[0] = { “vProfOtraProf1”: $w(’ #SelectOtrasProf ‘).value }; //dropdown element
}
export function searchButtonDEAlquiler_click(event, $w) {
if ($w(’#Pais3’).value.length === 0) {
filter.filterTree.$and[0] = {}
} else {
filter.filterTree.$and[0] = { “xPais”: { $contains: $w(’ #Pais3 ').value } }; //text element
}

filterTree gives error
Gracias por adelantado / Thanks in advance