add undefined check for _dynamicTabHeaderEndpoint
_dynamicTabHeaderEndpoint is set after plugins are installed _handleFileTabChange is triggered in initialization Change-Id: I7c47ab1511efe4e5af5afd1eaae06bcf4c9eb8bd
This commit is contained in:
@@ -539,7 +539,7 @@
|
||||
this._currentTabName = tabs[selectedIndex] &&
|
||||
tabs[selectedIndex].dataset.name;
|
||||
const source = e && e.type ? e.type : '';
|
||||
const pluginIndex = this._dynamicTabHeaderEndpoints.indexOf(
|
||||
const pluginIndex = (this._dynamicTabHeaderEndpoints || []).indexOf(
|
||||
this._currentTabName);
|
||||
if (pluginIndex !== -1) {
|
||||
this._selectedTabPluginEndpoint = this._dynamicTabContentEndpoints[
|
||||
|
||||
Reference in New Issue
Block a user