Skip to content

Commit

Permalink
fix: DSN selector not working sometimes (#9264)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Feb 28, 2024
1 parent 0f6ece5 commit 544bd5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/codeKeywords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {ArrowDown} from 'react-feather';
import {usePopper} from 'react-popper';
import styled from '@emotion/styled';
import {AnimatePresence, motion} from 'framer-motion';
import memoize from 'lodash/memoize';

import {useOnClickOutside} from 'sentry-docs/clientUtils';

Expand Down Expand Up @@ -95,7 +94,7 @@ function runRegex(
}
}

const getPortal = memoize((): HTMLElement | null => {
const getPortal = (): HTMLElement | null => {
if (typeof document === 'undefined') {
return null;
}
Expand All @@ -107,7 +106,7 @@ const getPortal = memoize((): HTMLElement | null => {
document.body.appendChild(portal);
}
return portal;
});
};

type KeywordSelectorProps = {
group: string;
Expand Down

0 comments on commit 544bd5c

Please sign in to comment.