Merge pull request #1897 from nextcloud/bugfix/noid/card-description-nul

This commit is contained in:
Julius Härtl
2020-05-15 11:29:05 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -327,7 +327,7 @@ export default {
},
},
renderedDescription() {
return markdownIt.render(this.copiedCard.description)
return markdownIt.render(this.copiedCard.description || '')
},
},
watch: {

View File

@@ -146,7 +146,7 @@ export default {
},
methods: {
openCard() {
this.$router.push({ name: 'card', params: { cardId: this.id } })
this.$router.push({ name: 'card', params: { cardId: this.id } }).catch(() => {})
},
startEditing(card) {
this.copiedCard = Object.assign({}, card)

View File

@@ -62,7 +62,7 @@ Vue.config.errorHandler = (err, vm, info) => {
const errorMessage = t('deck', 'Something went wrong')
OCP.Toast.error(`${errorMessage}: ${err.response.data.status} ${err.response.data.message}`)
}
throw err
console.error(err)
}
/* eslint-disable-next-line no-new */