Skip to content

Commit

Permalink
fix: getAirframeInfo format
Browse files Browse the repository at this point in the history
  • Loading branch information
2hwk committed Mar 31, 2024
1 parent 1c09eed commit 6ed52dd
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
// SPDX-License-Identifier: GPL-3.0

/* eslint-disable no-console */
/* eslint-disable no-underscore-dangle */
import Compare from 'semver/functions/compare';
import { CommitInfo, GitVersions, ReleaseInfo } from '@flybywiresim/api-client';
import { NotificationManager, PopUpDialog } from '@flybywiresim/fbw-sdk';

export enum AircraftType {
Unknown = 0,
A320_251N = 1,
A380_842 = 2
}

/**
* Contains the ${aircraft}_build_info.json file's information in a structured way.
*/
Expand Down Expand Up @@ -137,9 +144,9 @@ export class AircraftGithubVersionChecker {
}
await fetch(`/VFS/config/${aircraft}/${variant}/airframe.json`).then((response) => {
response.json().then((json) => {
this.airframeInfo = ({ variant: json.variant });
this.airframeInfo = ({ variant: json._variant });
}).catch((error) => {
console.error('Failed to read build info: ', error);
console.error('Failed to read airframe info: ', error);
});
});
return this.airframeInfo;
Expand Down

0 comments on commit 6ed52dd

Please sign in to comment.