diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts index 78c7109ec4f..67934834f05 100644 --- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts +++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts @@ -1151,7 +1151,7 @@ export class GettingStartedPage extends EditorPane { this.featuredExtensionsList?.layout(size); this.recentlyOpenedList?.layout(size); - if (this.editorInput.selectedStep && this.currentMediaType) { + if (this.editorInput?.selectedStep && this.currentMediaType) { this.mediaDisposables.clear(); this.stepDisposables.clear(); this.buildMediaComponent(this.editorInput.selectedStep);