fix category filter (#654)
This commit is contained in:
@@ -584,7 +584,8 @@ function buildFilterText(user: AuthRecord, filter: TrailFilter, includeGeo: bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (filter.category.length > 0) {
|
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) {
|
if (filter.tags.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user