Added undefined check to profiler (#18025)

This commit is contained in:
Alex Ma
2022-01-07 15:31:46 -08:00
committed by GitHub
parent 3cd9a562c8
commit 4b9c43848e

View File

@@ -464,7 +464,7 @@ export class ProfilerEditor extends EditorPane {
let savedViewState = this._savedTableViewStates.get(input);
this._profilerEditorContextKey.set(true);
if (input instanceof ProfilerInput && input.matches(this.input)) {
if (input instanceof ProfilerInput && this.input !== undefined && input.matches(this.input)) {
if (savedViewState) {
this._profilerTableEditor.restoreViewState(savedViewState);
}