Skip to content

Commit 2e9526f

Browse files
committed
Do not pass query param empty string, not necessary
1 parent 269c0fa commit 2e9526f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/app/views/dashboards/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,13 +634,13 @@ export const performanceScoreTooltip = t('peformance_score is not supported in D
634634
export function applyDashboardFilters(
635635
baseQuery: string | undefined,
636636
dashboardFilters: DashboardFilters | undefined
637-
): string {
637+
): string | undefined {
638638
const dashboardFilterConditions = dashboardFiltersToString(dashboardFilters);
639639
if (dashboardFilterConditions) {
640640
if (baseQuery) {
641641
return `(${baseQuery}) ${dashboardFilterConditions}`;
642642
}
643643
return dashboardFilterConditions;
644644
}
645-
return baseQuery ?? '';
645+
return baseQuery;
646646
}

0 commit comments

Comments
 (0)