Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jun 20, 2024
1 parent e513630 commit 7eaaf99
Show file tree
Hide file tree
Showing 3 changed files with 1,315 additions and 208 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

### v2.47.2 - 2024-06-20

- :bug: `API` Add UIDs array to all UID layers

### v2.47.1 - 2024-06-20

- :bug: `UI` Fix Web Lints
Expand Down
11 changes: 10 additions & 1 deletion api/lib/api/mission-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,19 @@ export default class {
): Promise<TAKList<Static<typeof MissionLayer>>> {
const url = new URL(`/Marti/api/missions/${this.#encodeName(name)}/layers`, this.api.url);

return await this.api.fetch(url, {
const res = await this.api.fetch(url, {
method: 'GET',
headers: this.#headers(opts),
});

res.data.map((l) => {
if (l.type === MissionLayerType.UID && !l.uids) {
l.uids = [];
}
return l;
})

return res;
}

async create(
Expand Down
Loading

0 comments on commit 7eaaf99

Please sign in to comment.