Skip to content

Commit

Permalink
Fix Frontend Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 6, 2024
1 parent 9657b5d commit 3550505
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/web/src/components/CloudTAK/CoTView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions api/web/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export type Feature = paths["/profile/feature/{:id}"]["get"]["responses"]["200"]
}
}

export type FeatureCollection = {
type: string
features: Array<Feature>
};

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"]
Expand Down

0 comments on commit 3550505

Please sign in to comment.