Skip to content

Commit 6ffee9b

Browse files
authored
fix: force value to string before calling trim (#4610)
1 parent 69cd317 commit 6ffee9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cloud/utils/reporting.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ export const cleanTags = (data: Point): Point => {
6969
return acc
7070
}
7171

72-
// if it's made it this far, it's a string, cast it explicitly so typescript will stfu
73-
acc[key] = (val as string).trim()
72+
acc[key] = String(val).trim()
7473
return acc
7574
}, {}),
7675
}

0 commit comments

Comments
 (0)