diff --git a/src/sql/workbench/contrib/profiler/browser/profilerEditor.ts b/src/sql/workbench/contrib/profiler/browser/profilerEditor.ts index 712c14fa4a..0a3165bab7 100644 --- a/src/sql/workbench/contrib/profiler/browser/profilerEditor.ts +++ b/src/sql/workbench/contrib/profiler/browser/profilerEditor.ts @@ -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); }