Fixes settings validation bug

This commit is contained in:
Christian Beutel
2025-03-15 10:28:02 +01:00
parent a49830bcf1
commit 5929443853
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ const SettingsCreateSchema = z.object({
name: z.string(),
lat: z.number(),
lon: z.number()
}).optional(),
}).optional().nullable(),
category: z.string().optional(),
tilesets: z.array(z.object({ name: z.string(), url: z.string().url() })).optional(),
terrain: z.object({ terrain: z.string().url(), hillshading: z.string().url() }).optional().nullable(),

View File

@@ -19,7 +19,7 @@ class Settings {
language?: Language;
bio?: string | null;
mapFocus?: "trails" | "location";
location?: { name: string, lat: number, lon: number };
location?: { name: string, lat: number, lon: number } | null;
category?: string;
tilesets?: ({ name: string, url: string }[]) | null
terrain?: { terrain: string, hillshading: string } | null;