Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 26, 2024
1 parent 62d3344 commit f7f5439
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

### Pending Release

### v3.11.1 - 2024-08-26

- :bug: `API` Mission#latestFeats API would return empty array if only a single Feature were in a MissionSync

### v3.11.0 - 2024-08-26

- :tada: `UI/API` Add ability to view stream locations in Lease Panel
Expand Down
4 changes: 3 additions & 1 deletion api/lib/api/mission-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ export default class {
return u.data
}));

return feats.filter((f) => {
const filtered = feats.filter((f) => {
return layerUids.has(f.id)
});

return filtered;
}

async get(
Expand Down
4 changes: 3 additions & 1 deletion api/lib/api/mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,14 @@ export default class {
const res: any = xmljs.xml2js(await this.latestCots(name, opts), { compact: true });

if (!Object.keys(res.events).length) return [];
if (!res.events.event.length) return [];
if (!res.events.event || (Array.isArray(res.events.event) && !res.events.event.length)) return [];

for (const event of Array.isArray(res.events.event) ? res.events.event : [res.events.event] ) {
feats.push((new CoT({ event })).to_geojson());
}

console.error(feats);

return feats;
}

Expand Down

0 comments on commit f7f5439

Please sign in to comment.