mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Merge pull request #997 from robintown/telemetry-crash
Fix a crash when adding call events to telemetry
This commit is contained in:
commit
d211d27817
@ -74,7 +74,7 @@ function flattenVoipEventRecursive(
|
||||
);
|
||||
|
||||
for (const [k, v] of Object.entries(obj)) {
|
||||
if (["string", "number", "boolean"].includes(typeof v)) {
|
||||
if (["string", "number", "boolean"].includes(typeof v) || v === null) {
|
||||
flatObject[prefix + k] = v;
|
||||
} else if (typeof v === "object") {
|
||||
flattenVoipEventRecursive(
|
||||
|
Loading…
Reference in New Issue
Block a user