Skip to content

Commit 6b71998

Browse files
author
Jackson Kearl
authored
Don't assume uncompleted category exists (#118250)
Fixes #118235
1 parent 21ea885 commit 6b71998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/welcome/gettingStarted/browser/gettingStarted.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ export class GettingStartedPage extends EditorPane {
613613
const progressAmount = assertIsDefined(progress.querySelector('.progress-bar-inner') as HTMLDivElement).style.width;
614614
if (!toFocus && progressAmount !== '100%') { toFocus = assertIsDefined(progress.parentElement?.parentElement); }
615615
});
616-
(toFocus ?? assertIsDefined(this.container.querySelector('button.skip')) as HTMLButtonElement).focus();
616+
(toFocus ?? assertIsDefined(this.container.querySelector('button.getting-started-category')) as HTMLButtonElement)?.focus();
617617
}
618618

619619
private setSlide(toEnable: 'details' | 'categories') {

0 commit comments

Comments
 (0)