|
|
|
@ -64,7 +64,8 @@ class CoderRootDirectory extends Component{
|
|
|
|
|
getProjectRoot=(branch)=>{
|
|
|
|
|
const { current_user } = this.props;
|
|
|
|
|
const { projectsId } = this.props.match.params;
|
|
|
|
|
const url = `/${current_user && current_user.login}/${projectsId}/entries.json`;
|
|
|
|
|
const { state } = this.props.history.location;
|
|
|
|
|
const url = `/${state}/${projectsId}/entries.json`;
|
|
|
|
|
axios.get((url),{
|
|
|
|
|
params:{
|
|
|
|
|
branch
|
|
|
|
|