Skip to content

Commit 6d573be

Browse files
update (#59)
1 parent ef1f2f1 commit 6d573be

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

Lines changed: 1 addition & 1 deletion
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)