more docs
This commit is contained in:
@@ -8,7 +8,7 @@ export const comments: Writable<Comment[]> = writable([])
|
||||
|
||||
export async function comments_index(trail: Trail) {
|
||||
let r = await fetch('/api/v1/comment?' + new URLSearchParams({
|
||||
filter: `trail = ${trail.id}`,
|
||||
filter: `trail="${trail.id}"`,
|
||||
}), {
|
||||
method: 'GET',
|
||||
})
|
||||
|
||||
@@ -8,6 +8,7 @@ export async function GET(event: RequestEvent) {
|
||||
try {
|
||||
const r: Comment[] = await pb.collection('comments').getFullList<Comment>({
|
||||
expand: "author",
|
||||
filter: filter,
|
||||
sort: "-created",
|
||||
})
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
{/each}
|
||||
</ul>
|
||||
<div id="map" class="rounded-xl z-0" class:hidden={!showMap}></div>
|
||||
<div class:hidden={showMap}>
|
||||
<div class="min-w-0" class:hidden={showMap}>
|
||||
<TrailList
|
||||
bind:filter
|
||||
trails={$list.expand?.trails ?? []}
|
||||
|
||||
Reference in New Issue
Block a user