diff --git a/src/Libs/Vidyano/vidyano.ts b/src/Libs/Vidyano/vidyano.ts index 664c7b43b..6e943fcbe 100644 --- a/src/Libs/Vidyano/vidyano.ts +++ b/src/Libs/Vidyano/vidyano.ts @@ -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;