mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 01:25:38 -05:00
* Revert "Revert "Remove typings and replace missing methods with vscodes (#8217)" (#8240)"
This reverts commit e801a04bcf.
* fix runtime error
* add tests for chartview
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import { Event, Emitter } from 'vs/base/common/event';
|
||||
|
||||
import { IDashboardTab } from 'sql/workbench/parts/dashboard/browser/dashboardRegistry';
|
||||
import { find } from 'vs/base/common/arrays';
|
||||
|
||||
|
||||
export interface IDashboardUITab {
|
||||
@@ -34,7 +35,7 @@ export class NewDashboardTabViewModel {
|
||||
tabList.push({ tabConfig: tab });
|
||||
});
|
||||
openedTabs.forEach(tab => {
|
||||
let uiTab = tabList.find(i => i.tabConfig === tab);
|
||||
let uiTab = find(tabList, i => i.tabConfig === tab);
|
||||
if (uiTab) {
|
||||
uiTab.isOpened = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user