Skip to content

Commit 81dfb8d

Browse files
Abdullah KhanAbdullah Khan
authored andcommitted
feat(source-map-issues): Addressing pr suggestions
1 parent 0955fab commit 81dfb8d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

static/app/views/issueDetails/configurationIssues/sourceMapIssues/diagnosisSection.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ import {LoadingIndicator} from 'sentry/components/loadingIndicator';
1414
import {IconOpen} from 'sentry/icons';
1515
import {t, tct} from 'sentry/locale';
1616

17-
function getDiagnosisMessage(data: SourceMapDebugBlueThunderResponse): ReactNode | null {
17+
function getDiagnosisMessage(
18+
data: SourceMapDebugBlueThunderResponse | undefined
19+
): ReactNode | null {
20+
if (!data) {
21+
return (
22+
<Text>{t('Unable to load source map diagnostic information for this event.')}</Text>
23+
);
24+
}
25+
1826
const release = data.release ? (
1927
<InlineCode variant="neutral">{data.release}</InlineCode>
2028
) : null;

0 commit comments

Comments
 (0)