Skip to content

Commit c17e61b

Browse files
committed
fix(CodeBlock): Fix defaultMode() computed
`supportPreview` is a computed, not a function. Signed-off-by: Jonas <jonas@freesources.org>
1 parent 17f9258 commit c17e61b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nodes/CodeBlock/CodeBlockView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default {
200200
if (this.isEditable) {
201201
return 'side-by-side'
202202
} else {
203-
return this.supportPreview() ? 'code' : 'preview'
203+
return this.supportPreview ? 'code' : 'preview'
204204
}
205205
},
206206

0 commit comments

Comments
 (0)