Skip to content

Commit ba20757

Browse files
authored
fix(ourlogs): Hide the sidebar (#93581)
It was being erroneously enabled by default
1 parent 3bc56f1 commit ba20757

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

static/app/views/explore/logs/logsTab.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {useLogsPageDataQueryResult} from 'sentry/views/explore/contexts/logs/log
3030
import {
3131
useLogsAggregate,
3232
useLogsAggregateFunction,
33-
useLogsAggregateParam,
3433
useLogsFields,
3534
useLogsGroupBy,
3635
useLogsSearch,
@@ -90,10 +89,9 @@ export function LogsTabContent({
9089
const interval = getIntervalOptionsForPageFilter(pageFilters.selection.datetime)?.[0]
9190
?.value;
9291
const aggregateFunction = useLogsAggregateFunction();
93-
const aggregateParam = useLogsAggregateParam();
9492
const aggregate = useLogsAggregate();
9593
const [sidebarOpen, setSidebarOpen] = useState(
96-
!!(aggregateFunction !== 'count' || aggregateParam || groupBy)
94+
!!((aggregateFunction && aggregateFunction !== 'count') || groupBy)
9795
);
9896
const timeseriesResult = useSortedTimeSeries(
9997
{

0 commit comments

Comments
 (0)