From e6ddf62ef86ed0c3ad683073e7b77bdf203c59e3 Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:32:20 -0500 Subject: [PATCH] wip --- packages/browser/src/plugins/env-enrichment/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/browser/src/plugins/env-enrichment/index.ts b/packages/browser/src/plugins/env-enrichment/index.ts index aa41ca889..3b1c183e3 100644 --- a/packages/browser/src/plugins/env-enrichment/index.ts +++ b/packages/browser/src/plugins/env-enrichment/index.ts @@ -140,11 +140,11 @@ class EnvironmentEnrichmentPlugin implements Plugin { } private enrich = (ctx: Context): Context => { - // Note: context should never actually be undefined here, since it is set as part of event creation. + // Note: Types are off - context should never be undefined here, since it is set as part of event creation. const evtCtx = ctx.event.context! - // Note: page should never be undefined here, since it is set as part of event creation. - const search = evtCtx.page!.search || '' + // Note: Types are off - page nor page.search never be undefined here, since they are set as part of event creation. + const search = evtCtx.page!.search! const query = typeof search === 'object' ? objectToQueryString(search) : search