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 15a3858 commit c71a702
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 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';
Expand Down Expand Up @@ -143,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 c71a702

Please sign in to comment.