File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
packages/client/composables Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ const useNavState = createSharedComposable((): SlidevContextNavState => {
290
290
const hasPrimarySlide = computed ( ( ) => ! ! currentRoute . params . no )
291
291
const currentSlideNo = computed ( ( ) => hasPrimarySlide . value ? getSlide ( currentRoute . params . no as string ) ?. no ?? 1 : 1 )
292
292
const currentSlideRoute = computed ( ( ) => slides . value [ currentSlideNo . value - 1 ] )
293
- const printRange = ref ( parseRangeString ( slides . value . length , currentRoute . query . range as string | undefined ) )
293
+ const printRange = ref ( parseRangeString ( slides . value . length , currentRoute ? .query ? .range as string | undefined ) )
294
294
295
295
const queryClicksRaw = useRouteQuery < string > ( 'clicks' , '0' )
296
296
You can’t perform that action at this time.
0 commit comments