Skip to content

Commit 5a95f38

Browse files
authored
fix(nav): Prevent saved searches sidebar from rendering when issue views are enabled (#87196)
Even though there is no place to toggle it any longer, users who had the sidebar open before being updated to the new experience would still see it rendered.
1 parent 8de0624 commit 5a95f38

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

static/app/views/issueList/savedIssueSearches.tsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import LoadingError from 'sentry/components/loadingError';
1212
import LoadingIndicator from 'sentry/components/loadingIndicator';
1313
import {CreateSavedSearchModal} from 'sentry/components/modals/savedSearchModal/createSavedSearchModal';
1414
import {EditSavedSearchModal} from 'sentry/components/modals/savedSearchModal/editSavedSearchModal';
15+
import {usePrefersStackedNav} from 'sentry/components/nav/prefersStackedNav';
1516
import {IconClose, IconEllipsis} from 'sentry/icons';
1617
import {t} from 'sentry/locale';
1718
import {space} from 'sentry/styles/space';
@@ -174,8 +175,14 @@ function SavedIssueSearches({
174175
refetch,
175176
} = useFetchSavedSearchesForOrg({orgSlug: organization.slug});
176177
const isMobile = useMedia(`(max-width: ${theme.breakpoints.small})`);
177-
178-
if (!isOpen || isMobile) {
178+
const prefersStackedNav = usePrefersStackedNav();
179+
180+
if (
181+
!isOpen ||
182+
isMobile ||
183+
prefersStackedNav ||
184+
organization.features.includes('issue-stream-custom-views')
185+
) {
179186
return null;
180187
}
181188

0 commit comments

Comments
 (0)