Skip to content

Commit

Permalink
fix(editor): extraneous semis
Browse files Browse the repository at this point in the history
  • Loading branch information
larvanitis committed Aug 4, 2020
1 parent 9e40200 commit 0db21e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/QuasarTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@ export default {
},
// content
getContent () {
let content = this.content || '';
let content = this.content || ''
if (content && content.type) {
return content; // parsed json
return content // parsed json
}
if (typeof content === 'string') {
try {
return JSON.parse(content) // json
} catch (e) {
return content; // html
return content // html
}
}
},
Expand Down

0 comments on commit 0db21e9

Please sign in to comment.