Merge pull request #4140 from seojcarlos/fix/firefox-events-nan

fix: prevent NaN timestamps from breaking event charts in Firefox
This commit is contained in:
Mike Cao authored and GitHub committed 2026-05-14 23:28:51 -04:00
commit a48f5aad5f
2 files changed
+20 -5

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ export function getQueryString(params: object = {}): string {
const searchParams = new URLSearchParams();
Object.entries(params).forEach(([key, value]) => {
if (value !== undefined) {
if (value !== undefined && value !== null && !Number.isNaN(value)) {
searchParams.append(key, value);
}
});