diff --git a/api/web/src/components/CloudTAK/CoTView.vue b/api/web/src/components/CloudTAK/CoTView.vue index f4166f7bd..7bfd93073 100644 --- a/api/web/src/components/CloudTAK/CoTView.vue +++ b/api/web/src/components/CloudTAK/CoTView.vue @@ -627,7 +627,7 @@ import { ref, computed, watch, onMounted } from 'vue'; import { useRoute, useRouter } from 'vue-router' import type COT from '../../../src/stores/base/cot.ts'; -import type { COTType } from '../../../src/types.ts'; +import type { COTType, FeatureCollection } from '../../../src/types.ts'; import { OriginMode } from '../../../src/stores/base/cot.ts' import Mission from '../../../src/stores/base/mission.ts' import { @@ -774,7 +774,7 @@ async function loadBreadcrumb() { const url = stdurl(`/api/marti/cot/${cot.value.id}/all`) url.searchParams.append('secago', String(60 * 60)) url.searchParams.append('track', String(true)) - const crumb = await std(url); + const crumb = await std(url) as FeatureCollection; for (const feat of crumb.features) { cotStore.add(feat) diff --git a/api/web/src/types.ts b/api/web/src/types.ts index 8f60a0f35..8f6569290 100644 --- a/api/web/src/types.ts +++ b/api/web/src/types.ts @@ -79,6 +79,11 @@ export type Feature = paths["/profile/feature/{:id}"]["get"]["responses"]["200"] } } +export type FeatureCollection = { + type: string + features: Array +}; + export type ProfileOverlay = paths["/profile/overlay/{:overlay}"]["get"]["responses"]["200"]["content"]["application/json"] export type ProfileOverlay_Create = paths["/profile/overlay"]["post"]["requestBody"]["content"]["application/json"] export type ProfileOverlay_Update = paths["/profile/overlay/{:overlay}"]["patch"]["requestBody"]["content"]["application/json"]