瀏覽代碼

Removes extra refresh call

main
Eric Amodio 2 年之前
父節點
當前提交
0e568e9b30
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      src/views/nodes/commitNode.ts

+ 1
- 2
src/views/nodes/commitNode.ts 查看文件

@ -98,6 +98,7 @@ export class CommitNode extends ViewRefNode
new PullRequestNode(this.view as ViewsWithCommits, this, pr, commit),
);
}
// Refresh this node to show a spinner while the pull request is loading
this.view.triggerNodeChange(this);
});
@ -107,8 +108,6 @@ export class CommitNode extends ViewRefNode
() => this.view.triggerNodeChange(this),
() => {},
);
queueMicrotask(() => this.view.triggerNodeChange(this));
});
}
}

Loading…
取消
儲存