Skip to content

Commit

Permalink
Merge pull request #997 from robintown/telemetry-crash
Browse files Browse the repository at this point in the history
Fix a crash when adding call events to telemetry
  • Loading branch information
robintown authored Apr 12, 2023
2 parents a2b3e09 + 0637804 commit d211d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otel/OTelGroupCallMembership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d211d27

Please sign in to comment.