Merge pull request #1897 from nextcloud/bugfix/noid/card-description-nul
This commit is contained in:
@@ -327,7 +327,7 @@ export default {
|
||||
},
|
||||
},
|
||||
renderedDescription() {
|
||||
return markdownIt.render(this.copiedCard.description)
|
||||
return markdownIt.render(this.copiedCard.description || '')
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user