Skip to content

Commit

Permalink
fix sector fetching and sector display (#20)
Browse files Browse the repository at this point in the history
* fix sector fetching and sector display
* increment patch version number
  • Loading branch information
LeoKle authored Oct 30, 2023
1 parent 3dcc6e1 commit 2d574d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loa-viewer-backend",
"version": "2.2.0",
"version": "2.2.1",
"description": "",
"main": "app.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/services/sector.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function updateSectors() {

// fetch sectors
// filenames as given in https://github.com/lennycolton/vatglasses-data/tree/main/data
const countries: string[] = ['germany', 'nl', 'belux', 'austria', 'czechia'];
const countries: string[] = ['ed', 'eh', 'eb-el', 'lo', 'lk'];
const sectors = await retrieveAirspacesFromCountries(countries);

// Insert fetched sectors
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function LoaViewerMap() {
useEffect(() => {
const stationsSet: Set<string> = new Set();
for (const airspace of airspaces) {
if (airspace.country === 'germany' && airspace.group === selectedFir) {
if (airspace.country === 'ed' && airspace.group === selectedFir) {
stationsSet.add(airspace.owner[0]);
}
}
Expand Down

0 comments on commit 2d574d9

Please sign in to comment.