1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-18 04:01:45 +00:00

fix lint errors

This commit is contained in:
Baptiste Augrain
2018-08-21 11:19:46 +02:00
parent 00b4874d09
commit 13d44ae56a

View File

@@ -20,8 +20,8 @@ class TagSelect extends React.Component {
componentDidMount () { componentDidMount () {
this.value = this.props.value this.value = this.props.value
ee.on('editor:add-tag', this.addtagHandler) ee.on('editor:add-tag', this.addtagHandler)
new Awesomplete(this.refs.newTag, { const awesomplete = new Awesomplete(this.refs.newTag, {
minChars: 1, minChars: 1,
autoFirst: true, autoFirst: true,
list: '#datalist' list: '#datalist'
@@ -143,13 +143,13 @@ class TagSelect extends React.Component {
) )
}) })
: [] : []
const datalist = _.sortBy(data.tagNoteMap.map( const datalist = _.sortBy(data.tagNoteMap.map(
(tag, name) => ({ name, size: tag.size }) (tag, name) => ({ name, size: tag.size })
).filter( ).filter(
tag => tag.size > 0 tag => tag.size > 0
), ['name']).map( ), ['name']).map(
tag => <li>{tag.name}</li> tag => <li key={tag.name}>{tag.name}</li>
) )
return ( return (