Skip to content

Commit e15a188

Browse files
colin-sentryandrewshie-sentry
authored andcommitted
fix(ourlogs): Hide the section if there is no data (#92523)
Fixes LOGS-150
1 parent ca3104c commit e15a188

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

static/app/components/events/ourlogs/ourlogsSection.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ function OurlogsSectionContent({
106106
// We may change this in the future if we have a trace-group or we generate trace sids for these issue types.
107107
return null;
108108
}
109-
if (
110-
!tableData ||
111-
(tableData.data && tableData.data.length === 0 && logsSearch.isEmpty())
112-
) {
109+
if (!tableData?.data || (tableData.data.length === 0 && logsSearch.isEmpty())) {
113110
// Like breadcrumbs, we don't show the logs section if there are no logs.
114111
return null;
115112
}

0 commit comments

Comments
 (0)