Return empty array instead of undefined in mapTimestampToAxisTicksByFormat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
imacatandClaude Opus 4.6 committed 2026-03-09 19:39:43 +08:00
1 parent 35d5b07b07
commit a669c8e98e
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -251,4 +251,5 @@ export const mapTimestampToAxisTicksByFormat = (timeStampArr, timeFormat) => {
if (timeStampArr) {
return timeStampArr.map((ts) => moment(ts).format(timeFormat));
}
return [];
};