File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,9 @@ export default async function doLoadConfig(options: {
358358 } ;
359359
360360 if ( newConfig . analytics ) {
361+ // FIXME before re-enabling TeamAnalytics.setup() populate workspaceId in
362+ // controlPlaneProxyInfo to prevent /proxy/analytics/undefined/capture calls
363+ // where undefined is :workspaceId
361364 // await TeamAnalytics.setup(
362365 // newConfig.analytics,
363366 // uniqueId,
Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ export default class ContinueProxyAnalyticsProvider
2020 event : string ,
2121 properties : { [ key : string ] : any } ,
2222 ) : Promise < void > {
23+ if ( ! this . controlPlaneProxyInfo ?. workspaceId ) {
24+ return ;
25+ }
26+
2327 const url = new URL (
24- `proxy/analytics/${ this . controlPlaneProxyInfo ? .workspaceId } /capture` ,
28+ `proxy/analytics/${ this . controlPlaneProxyInfo . workspaceId } /capture` ,
2529 this . controlPlaneProxyInfo ?. controlPlaneProxyUrl ,
2630 ) . toString ( ) ;
2731 void fetch ( url , {
You can’t perform that action at this time.
0 commit comments