提交 038773bc 编写于 作者: S Sandeep Somavarapu

Fix - slice array and not use returned directly

上级 eb0bfd53
......@@ -357,8 +357,8 @@ export abstract class CompositePart<T extends Composite> extends Part {
private collectCompositeActions(composite: Composite): () => void {
// From Composite
let primaryActions: IAction[] = composite.getActions();
let secondaryActions: IAction[] = composite.getSecondaryActions();
let primaryActions: IAction[] = composite.getActions().slice(0);
let secondaryActions: IAction[] = composite.getSecondaryActions().slice(0);
// From Part
primaryActions.push(...this.getActions());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册