From db3e7c5e07b85a9fb9a36412747ccf49553c9455 Mon Sep 17 00:00:00 2001 From: Zhiyuan Liang Date: Thu, 24 Oct 2024 15:48:54 +0800 Subject: [PATCH] update --- .../src/telemetry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/feature-management-applicationinsights-browser/src/telemetry.ts b/sdk/feature-management-applicationinsights-browser/src/telemetry.ts index 50130ca..10b1c76 100644 --- a/sdk/feature-management-applicationinsights-browser/src/telemetry.ts +++ b/sdk/feature-management-applicationinsights-browser/src/telemetry.ts @@ -47,6 +47,6 @@ export function createTelemetryPublisher(client: ApplicationInsights): (event: E export function trackEvent(client: ApplicationInsights, targetingId: string, event: IEventTelemetry, customProperties?: {[key: string]: any}): void { const properties = customProperties ? { ...customProperties } : {}; // Ensure targetingId is string so that it will be placed in customDimensions - properties["TargetingId"] = targetingId?.toString(); + properties["TargetingId"] = targetingId ? targetingId.toString() : ""; client.trackEvent(event, properties); }