fix(#375): resolve recharts TypeScript strict mode type errors
Some checks failed
ci/woodpecker/push/web Pipeline failed

- Fix Tooltip formatter/labelFormatter type overload conflicts
- Fix Pie label render props type mismatch
- Fix telemetry.ts date split array access type

Refs #375

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 02:21:54 -06:00
parent 2eafa91e70
commit 8e27f73f8f
2 changed files with 17 additions and 10 deletions

View File

@@ -70,7 +70,7 @@ function generateDateRange(range: TimeRange): string[] {
for (let i = days - 1; i >= 0; i--) {
const d = new Date(now);
d.setDate(d.getDate() - i);
dates.push(d.toISOString().split("T")[0]);
dates.push(d.toISOString().split("T")[0] ?? "");
}
return dates;