File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/vs/workbench/contrib/welcomeGettingStarted/browser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -650,7 +650,11 @@ export class GettingStartedPage extends EditorPane {
650
650
let stepElement = this . container . querySelector < HTMLDivElement > ( `[data-step-id="${ id } "]` ) ;
651
651
if ( ! stepElement ) {
652
652
// Selected an element that is not in-context, just fallback to whatever.
653
- stepElement = assertIsDefined ( this . container . querySelector < HTMLDivElement > ( `[data-step-id]` ) ) ;
653
+ stepElement = this . container . querySelector < HTMLDivElement > ( `[data-step-id]` ) ;
654
+ if ( ! stepElement ) {
655
+ // No steps around... just ignore.
656
+ return ;
657
+ }
654
658
id = assertIsDefined ( stepElement . getAttribute ( 'data-step-id' ) ) ;
655
659
}
656
660
stepElement . parentElement ?. querySelectorAll < HTMLElement > ( '.expanded' ) . forEach ( node => {
You can’t perform that action at this time.
0 commit comments