Merge pull request #997 from robintown/telemetry-crash
Fix a crash when adding call events to telemetry
This commit is contained in:
		
				commit
				
					
						d211d27817
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue