Type conversion to string for UUID

This commit is contained in:
Sean Morley
2024-08-13 12:03:18 -04:00
parent ffe9d6fe97
commit 70a2fc45fd
6 changed files with 11 additions and 11 deletions

View File

@@ -11,7 +11,7 @@
export let longitude: number | null = null;
export let latitude: number | null = null;
export let collection_id: number | null = null;
export let collection_id: string | null = null;
import MapMarker from '~icons/mdi/map-marker';
import Calendar from '~icons/mdi/calendar';
@@ -29,7 +29,7 @@
export let endDate: string | null = null;
let newAdventure: Adventure = {
id: NaN,
id: '',
type: type,
name: '',
location: '',
@@ -43,7 +43,7 @@
latitude: null,
longitude: null,
is_public: false,
collection: collection_id || NaN
collection: collection_id || ''
};
if (longitude && latitude) {

View File

@@ -21,7 +21,7 @@ export type Adventure = {
link?: string | null;
image?: string | null;
date?: string | null; // Assuming date is a string in 'YYYY-MM-DD' format
collection?: number | null;
collection?: string | null;
latitude: number | null;
longitude: number | null;
is_public: boolean;