File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sdk/feature-management-applicationinsights-browser/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ import { IEventTelemetry } from "@microsoft/applicationinsights-web";
1313export function createTelemetryPublisher ( client : ApplicationInsights ) : ( event : EvaluationResult ) => void {
1414 return ( event : EvaluationResult ) => {
1515 const eventProperties = {
16- "FeatureName" : event . feature ?. id ,
16+ "FeatureName" : event . feature ? event . feature . id : "" ,
1717 "Enabled" : event . enabled . toString ( ) ,
1818 // Ensure targetingId is string so that it will be placed in customDimensions
19- "TargetingId" : event . targetingId ?. toString ( ) ,
20- "Variant" : event . variant ?. name ,
19+ "TargetingId" : event . targetingId ? event . targetingId . toString ( ) : "" ,
20+ "Variant" : event . variant ? event . variant . name : "" ,
2121 "VariantAssignmentReason" : event . variantAssignmentReason ,
2222 } ;
2323
You can’t perform that action at this time.
0 commit comments