From 68721f5bfa23d50cb7fe4e2315f8528bb7eddbbe Mon Sep 17 00:00:00 2001 From: "Damon L. Montague Jr." Date: Sun, 28 Apr 2024 02:56:28 -0400 Subject: [PATCH] removed the ts-ignore --- ui/src/pages/History.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/pages/History.tsx b/ui/src/pages/History.tsx index 10f2801..6d6d99d 100644 --- a/ui/src/pages/History.tsx +++ b/ui/src/pages/History.tsx @@ -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]; }