Skip to content

Commit

Permalink
Use internal .add call for consistent styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 7, 2024
1 parent 6fa3206 commit 8f0043e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/web/src/stores/cots.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ export const useCOTStore = defineStore('cots', {
loadMission: async function(guid) {
try {
const fc = await window.std(`/api/marti/missions/${encodeURIComponent(guid)}/cot`);
if (!this.subscriptions.has(guid)) this.subscriptions.set(guid, new Map());
const cots = this.subscriptions.get(guid);
cots.clear();
for (const feat of fc.features) cots.set(feat.id, feat);
for (const feat of fc.features) this.add(feat, guid);
} catch (err) {
console.error(err);
}
Expand Down

0 comments on commit 8f0043e

Please sign in to comment.