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