diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js index d1daf1dc3..2f0ebf5ba 100644 --- a/src/forge/Main/CoderRootDirectory.js +++ b/src/forge/Main/CoderRootDirectory.js @@ -521,6 +521,7 @@ class CoderRootDirectory extends Component { {...this.state} readOnly={this.state.readOnly} onEdit={this.onEdit} + currentBranch={branch} > )} { diff --git a/src/forge/Main/CoderRootFileDetail.js b/src/forge/Main/CoderRootFileDetail.js index 84065d4cb..218806ba4 100644 --- a/src/forge/Main/CoderRootFileDetail.js +++ b/src/forge/Main/CoderRootFileDetail.js @@ -164,7 +164,8 @@ class CoderRootFileDetail extends Component { current_user, isManager, isDeveloper, - md + md, + currentBranch } = this.props; const { language, languages, description } = this.state; let flag = current_user && current_user.login && (isManager || isDeveloper); @@ -194,12 +195,9 @@ class CoderRootFileDetail extends Component { this.EditFile(false)} className="ml20"> - } - - ) : (