Skip to content

Commit

Permalink
Fixed broken service tab lookup after refresh or cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Feb 23, 2017
1 parent 842524d commit 10b397b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libs/Vidyano/vidyano.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2282,7 +2282,7 @@ namespace Vidyano {
const groups = [this.service.hooks.onConstructPersistentObjectAttributeGroup(this.service, attr.groupKey, Enumerable.from([attr]), this)];
groups[0].index = 0;

const serviceTab = this._lastResult.tabs.filter(tab => tab.key === attr.tabKey)[0];
const serviceTab = this._lastResult.tabs[attr.tabKey];
attr.tab = tab = this.service.hooks.onConstructPersistentObjectAttributeTab(this.service, Enumerable.from(groups), attr.tabKey, serviceTab.id, serviceTab.name, serviceTab.layout, this, serviceTab.columnCount, !this.isHidden);
this.tabs.push(tab);
tabsAdded = true;
Expand Down

0 comments on commit 10b397b

Please sign in to comment.