1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

fixed snippet list bug

This commit is contained in:
Nguyễn Việt Hưng
2018-08-11 09:20:04 +07:00
parent 79fb04126c
commit b8d66e4a95

View File

@@ -22,7 +22,7 @@ class SnippetList extends React.Component {
reloadSnippetList () { reloadSnippetList () {
dataApi.fetchSnippet().then(snippets => { dataApi.fetchSnippet().then(snippets => {
this.setState({snippets}) this.setState({snippets})
this.props.onSnippetSelect(snippets[0]) this.props.onSnippetSelect(this.props.currentSnippet)
}) })
} }