Skip to content

Commit

Permalink
fix: better way to fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Feb 1, 2023
1 parent 88668df commit 0eb9ca1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/vue-quill/src/components/QuillEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@ export const QuillEditor = defineComponent({
oldContents: Delta,
source: Sources
) => {
// Quill should never be null at this point because we receive an event
// so content should not be undefined but let's make ts and eslint happy
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
internalModel = maybeClone(getContents()!)
internalModel = maybeClone(getContents() as string | Delta)
// Update v-model:content when text changes
if (!internalModelEquals(props.content)) {
ctx.emit('update:content', internalModel)
Expand Down

0 comments on commit 0eb9ca1

Please sign in to comment.