mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
refactor(SideBar): init in componentWillMount
This commit is contained in:
parent
51f2db8bb7
commit
081be4ff4d
1 changed files with 2 additions and 3 deletions
|
|
@ -58,9 +58,8 @@ export default class Gitako extends React.PureComponent {
|
|||
compressSingletonFolder: false,
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props)
|
||||
const { init } = props
|
||||
componentWillMount() {
|
||||
const { init } = this.props
|
||||
init()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue