提交 4877529f 编写于 作者: I isidor

fixes #37376

上级 a219b4b6
......@@ -355,6 +355,9 @@ export class CompositeBar implements ICompositeBar {
const visibleComposites = this.getVisibleComposites();
let unpinPromise: TPromise<any>;
// remove from pinned
const index = this.pinnedComposites.indexOf(compositeId);
this.pinnedComposites.splice(index, 1);
// Case: composite is not the active one or the active one is a different one
// Solv: we do nothing
......@@ -381,10 +384,6 @@ export class CompositeBar implements ICompositeBar {
}
unpinPromise.then(() => {
// then remove from pinned and update switcher
const index = this.pinnedComposites.indexOf(compositeId);
this.pinnedComposites.splice(index, 1);
this.updateCompositeSwitcher();
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册