Skip to content
Snippets Groups Projects
Commit 20357e7c authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'ink-fix' into 'staging'

kill the upload icon if ink call fails

See merge request !11
parents 827775b0 a6a667f5
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ class ChapterTitle extends React.Component {
renderHasContent () {
const { chapter, type } = this.props
const source = chapter.source
const source = chapter.source || ''
const hasContent = source.trim().length > 0
if (!hasContent) return null
......
......@@ -25,7 +25,7 @@ export class UploadButton extends React.Component {
update(chapter)
toggleUpload()
}).catch((error) => {
console.err('INK error', error)
console.error('INK error', error)
toggleUpload()
})
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment