Skip to content

Commit

Permalink
fix: editor don't has contentComponent attribute when suggestion onUp…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
周洋 committed Jun 23, 2022
1 parent 482cb96 commit b2acf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-2/src/VueRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class VueRenderer {

// prevents `Avoid mutating a prop directly` error message
// Fix: `VueNodeViewRenderer` change vue Constructor `config.silent` not working
const currentVueConstructor = this.ref.$props.editor.contentComponent?.$options._base ?? Vue // eslint-disable-line
const currentVueConstructor = this.ref.$props.editor?.contentComponent?.$options._base ?? Vue // eslint-disable-line
const originalSilent = currentVueConstructor.config.silent

currentVueConstructor.config.silent = true
Expand Down

0 comments on commit b2acf94

Please sign in to comment.