@@ -48,9 +48,12 @@ import type {
4848 Tag ,
4949 TagsOptions ,
5050} from 'storybook/internal/types' ;
51+ import { isReviewManagerRoute } from '../../shared/review/routes.ts' ;
5152
5253import { global } from '@storybook/global' ;
5354
55+ import { BUILT_IN_FILTERS } from '../../shared/constants/tags.ts' ;
56+ import { countStatusesByValue } from '../../shared/status-store/index.ts' ;
5457import { getEventMetadata } from '../lib/events.ts' ;
5558import {
5659 addPreparedStories ,
@@ -63,8 +66,6 @@ import type { ModuleFn } from '../lib/types.tsx';
6366import { buildNavigationUrl } from '../lib/url.ts' ;
6467import type { ComposedRef } from '../root.tsx' ;
6568import { fullStatusStore } from '../stores/status.ts' ;
66- import { BUILT_IN_FILTERS } from '../../shared/constants/tags.ts' ;
67- import { countStatusesByValue } from '../../shared/status-store/index.ts' ;
6869import { computeStatusFilterFn , parseStatusesParam , serializeStatusesParam } from './statuses.ts' ;
6970import {
7071 computeStaticFilterFn ,
@@ -1053,7 +1054,8 @@ export const init: ModuleFn<SubAPI, SubState> = ({
10531054 if ( sourceType === 'local' ) {
10541055 const state = store . getState ( ) ;
10551056 const isCanvasRoute =
1056- state . path === '/' || state . viewMode === 'story' || state . viewMode === 'docs' ;
1057+ ! isReviewManagerRoute ( state . path , state . customQueryParams ) &&
1058+ ( state . path === '/' || state . viewMode === 'story' || state . viewMode === 'docs' ) ;
10571059 const stateHasSelection = state . viewMode && state . storyId ;
10581060 const stateSelectionDifferent = state . viewMode !== viewMode || state . storyId !== storyId ;
10591061 const { type } = state . index ?. [ state . storyId ] || { } ;
0 commit comments