Skip to content

Commit

Permalink
removed the ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
day-mon committed Apr 28, 2024
1 parent be379c6 commit 68721f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/pages/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ export function History() {

const oldestDateForModel = () => {
if (!dates.error && dates()) {
// @ts-ignore
const datesForModel = dates().find(date => date.model_name === selectedModel());
const datesForModel = dates()?.find(date => date.model_name === selectedModel());
if (datesForModel) {
return datesForModel.dates[datesForModel.dates.length - 1];
}
Expand Down

0 comments on commit 68721f5

Please sign in to comment.