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 @@ -18,11 +18,11 @@ export function createTelemetryPublisher(client: ApplicationInsights): (event: E
1818
1919 const eventProperties = {
2020 "Version" : EVALUATION_EVENT_VERSION ,
21- "FeatureName" : event . feature . id ,
21+ "FeatureName" : event . feature ? event . feature . id : "" ,
2222 "Enabled" : event . enabled . toString ( ) ,
2323 // Ensure targetingId is string so that it will be placed in customDimensions
24- "TargetingId" : event . targetingId ?. toString ( ) ,
25- "Variant" : event . variant ?. name ,
24+ "TargetingId" : event . targetingId ? event . targetingId . toString ( ) : "" ,
25+ "Variant" : event . variant ? event . variant . name : "" ,
2626 "VariantAssignmentReason" : event . variantAssignmentReason ,
2727 } ;
2828
You can’t perform that action at this time.
0 commit comments