Table image fixes

This commit is contained in:
Bahadır Sofuoğlu
2022-11-08 12:54:12 +03:00
parent 99a7b92256
commit f9d598918b
2 changed files with 3 additions and 3 deletions

View File

@@ -31,8 +31,8 @@ const searchCountry = (event) => {
//in a real application, make a request to a remote url with the query and return filtered results, for demo we filter at client side
const filtered = [];
const query = event.query;
for (let i = 0; i < this.countries.length; i++) {
const country = this.countries[i];
for (let i = 0; i < countries.value.length; i++) {
const country = countries.value[i];
if (country.name.toLowerCase().indexOf(query.toLowerCase()) == 0) {
filtered.push(country);
}