Skip to content

Commit

Permalink
fix: fix minTime/maxTime getters
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Aug 29, 2024
1 parent 7bb41e4 commit ae53562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@ourworldindata/core-table/src/OwidTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ export class OwidTable extends CoreTable<OwidRow, OwidColumnDef> {
return min(this.allTimes) as Time
}

@imemo get maxTime(): number | undefined {
return max(this.allTimes)
@imemo get maxTime(): Time {
return max(this.allTimes) as Time
}

@imemo private get allTimes(): Time[] {
return this.get(this.timeColumn.slug).values.slice().sort()
return this.get(this.timeColumn.slug).values
}

@imemo get rowIndicesByEntityName(): Map<string, number[]> {
Expand Down

0 comments on commit ae53562

Please sign in to comment.