Skip to content

Commit 62a8be6

Browse files
authored
fix: clean up noisy events (#4125)
1 parent 5427a91 commit 62a8be6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/resources/components/GetResources.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class GetResources extends PureComponent<Props> {
5252
const gotResources = resources.join(', ')
5353
Promise.all(promises).then(() => {
5454
event(
55-
`GetResources ${gotResources}`,
55+
'GetResources',
5656
{
5757
time: startTime,
5858
resource: gotResources,

src/shared/search/GlobalSearch.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, {FC, useEffect, memo, useState} from 'react'
2-
import {useLocation} from 'react-router-dom'
32

43
import {ClickOutside} from 'src/shared/components/ClickOutside'
54

@@ -13,11 +12,10 @@ import './GlobalSearch.scss'
1312

1413
const GlobalSearch: FC = () => {
1514
const [showState, setShowState] = useState(false)
16-
const location = useLocation()
1715
const toggleShowSearch = (e: KeyboardEvent) => {
1816
if (e.ctrlKey && e.key === 'm') {
1917
setShowState(true)
20-
event(`Global search opened from url ${location.pathname}`)
18+
event(`Global search opened`)
2119
} else if (e.key === 'Escape') {
2220
setShowState(false)
2321
}

0 commit comments

Comments
 (0)