Skip to content

Commit

Permalink
resolve Parameter 'tooltipItem' implicitly has an 'any' type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyxis committed Apr 27, 2021
1 parent 1c906f2 commit 9048cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/calculator/LogbookCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ function makeDistinctContent(map: Map<string, number>, airportList: Airport[]) {
.sort()
.map((element) => {
const airport = findAirportName(airportList, element);
if (airport == undefined) {
console.log(`${element} is missing`);
}
return airport;
})
.filter((element) => element != undefined)
Expand Down
4 changes: 2 additions & 2 deletions src/components/plan/PlanElevationProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { Component, Prop, Vue } from "vue-property-decorator";
import ElevationChart from "@/components/plan/ElevationChart";
import { displayFt, displayFtOnly } from "@/calculator/UnitCalculator";
import { ChartOptions } from "chart.js";
import { ChartOptions, ChartTooltipItem } from "chart.js";
@Component({
components: {
Expand All @@ -33,7 +33,7 @@ export default class PlanElevationProfile extends Vue {
},
tooltips: {
callbacks: {
label: (tooltipItem) =>
label: (tooltipItem: ChartTooltipItem) =>
`${tooltipItem.xLabel} - ${displayFt(
tooltipItem.yLabel?.toString() || ""
)}`,
Expand Down

0 comments on commit 9048cea

Please sign in to comment.