mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
fixed snippet list bug
This commit is contained in:
@@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user