Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 27, 2023
1 parent f2aa03d commit e6ddf62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/browser/src/plugins/env-enrichment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6ddf62

Please sign in to comment.