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";
13
13
export function createTelemetryPublisher ( client : ApplicationInsights ) : ( event : EvaluationResult ) => void {
14
14
return ( event : EvaluationResult ) => {
15
15
const eventProperties = {
16
- "FeatureName" : event . feature ?. id ,
16
+ "FeatureName" : event . feature ? event . feature . id : "" ,
17
17
"Enabled" : event . enabled . toString ( ) ,
18
18
// 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 : "" ,
21
21
"VariantAssignmentReason" : event . variantAssignmentReason ,
22
22
} ;
23
23
You can’t perform that action at this time.
0 commit comments