fixes serverside pb auth
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Trail } from "$lib/models/trail";
|
||||
import { categories_index } from "$lib/stores/category_store";
|
||||
import { trail, trails_show } from "$lib/stores/trail_store";
|
||||
import { trails_show } from "$lib/stores/trail_store";
|
||||
import { error, type Load } from "@sveltejs/kit";
|
||||
|
||||
export const load: Load = async ({ params }) => {
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
<button
|
||||
class="leaflet-control fa fa-{mapFullScreen
|
||||
? 'minimize'
|
||||
: 'maximize'} rounded-full text-lg bg-white px-[14px] py-2 hover:bg-gray-100"
|
||||
: 'maximize'} rounded-full text-lg bg-white text-black px-[14px] py-2 hover:bg-gray-100"
|
||||
style="cursor: pointer !important"
|
||||
on:click={() => toggleMapFullScreen()}
|
||||
></button>
|
||||
|
||||
@@ -2,9 +2,5 @@ import { trails_show } from "$lib/stores/trail_store";
|
||||
import type { Load } from "@sveltejs/kit";
|
||||
|
||||
export const load: Load = async ({ params }) => {
|
||||
try {
|
||||
await trails_show(params.id!, true)
|
||||
}catch(e) {
|
||||
|
||||
}
|
||||
await trails_show(params.id!, true)
|
||||
};
|
||||
Reference in New Issue
Block a user