1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #2283 from ZeroX-DG/fix-snippet-list-bug

Fixed snippet list bug
This commit is contained in:
Junyoung Choi (Sai)
2018-08-20 10:35:06 +09:00
committed by GitHub

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)
}) })
} }