fixes missing shrares in search results
This commit is contained in:
@@ -197,6 +197,7 @@ export const defaultTrailSearchAttributes = [
|
||||
"thumbnail",
|
||||
"gpx",
|
||||
"tags",
|
||||
"shares",
|
||||
"_geo",]
|
||||
|
||||
|
||||
|
||||
@@ -458,6 +458,8 @@ export async function fetchGPX(trail: { gpx?: string } & Record<string, any>, f:
|
||||
async function searchResultToTrailList(hits: Hits<TrailSearchResult>): Promise<Trail[]> {
|
||||
const trails: Trail[] = []
|
||||
for (const h of hits) {
|
||||
console.log(h);
|
||||
|
||||
const t: Trail & RecordModel = {
|
||||
collectionId: "trails",
|
||||
collectionName: "trails",
|
||||
|
||||
Reference in New Issue
Block a user