fix category filter (#654)

This commit is contained in:
slothful-vassal
2026-01-13 12:04:52 +01:00
committed by GitHub
parent 57b37d84c4
commit c80dc01c7a

View File

@@ -584,7 +584,8 @@ function buildFilterText(user: AuthRecord, filter: TrailFilter, includeGeo: bool
}
if (filter.category.length > 0) {
filterText += ` AND category IN ['${filter.category.join(",")}']`;
const categoryValues = filter.category.map(category => `'${category}'`).join(", ");
filterText += ` AND category IN [${categoryValues}]`;
}
if (filter.tags.length > 0) {