fix linting issues
parent
397ceff833
commit
19ec5f7dd7
|
@ -74,7 +74,7 @@ module.exports = {
|
|||
|
||||
async function sendUpdatesAsync (id) {
|
||||
const book = await Book.find({ id })
|
||||
const targets = await TargetUri.find()
|
||||
const targets = await TargetUrl.find()
|
||||
for (const i in targets) {
|
||||
sails.log('sending ' + book.id + ' info to ' + targets[i].url)
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import '../../styles/shared/iconbutton.scss'
|
|||
function getSVG (icon) {
|
||||
switch (icon) {
|
||||
case 'delete': return '<svg viewBox="0 0 24 24"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>'
|
||||
default: icon || 'missing icon prop'
|
||||
default: return icon || 'missing icon prop'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,9 +9,6 @@ import { changeUrlField, setUrl, removeUrl } from '../actions/targets'
|
|||
const uriRegex = /(.+:\/\/)?(.+\.)*(.+\.).{1,}(:\d+)?(.+)?/i
|
||||
|
||||
class UriListItem extends React.Component {
|
||||
constructor () {
|
||||
super()
|
||||
}
|
||||
render () {
|
||||
return (
|
||||
<li className='uri-list-item flex-container'>
|
||||
|
|
Loading…
Reference in New Issue