Added null check before building getting started slide. (#186468)

Add null check before building getting started slide.
This commit is contained in:
Bhavya U
2023-06-28 00:25:43 -07:00
committed by GitHub
parent 0ee51c3970
commit 4649b53333
@@ -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);