Skip to content

Commit a8e95e8

Browse files
Merge pull request #60 from microsoft/preview
Merge preview to release/v2
2 parents 23197a2 + 6d573be commit a8e95e8

File tree

1 file changed

+1
-1
lines changed
  • sdk/feature-management-applicationinsights-browser/src

1 file changed

+1
-1
lines changed

sdk/feature-management-applicationinsights-browser/src/telemetry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ export function createTelemetryPublisher(client: ApplicationInsights): (event: E
4747
export function trackEvent(client: ApplicationInsights, targetingId: string, event: IEventTelemetry, customProperties?: {[key: string]: any}): void {
4848
const properties = customProperties ? { ...customProperties } : {};
4949
// Ensure targetingId is string so that it will be placed in customDimensions
50-
properties["TargetingId"] = targetingId?.toString();
50+
properties["TargetingId"] = targetingId ? targetingId.toString() : "";
5151
client.trackEvent(event, properties);
5252
}

0 commit comments

Comments
 (0)