Skip to content

Commit 0eb9ca1

Browse files
committed
fix: better way to fix lint
1 parent 88668df commit 0eb9ca1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/vue-quill/src/components/QuillEditor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ export const QuillEditor = defineComponent({
215215
oldContents: Delta,
216216
source: Sources
217217
) => {
218-
// Quill should never be null at this point because we receive an event
219-
// so content should not be undefined but let's make ts and eslint happy
220-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
221-
internalModel = maybeClone(getContents()!)
218+
internalModel = maybeClone(getContents() as string | Delta)
222219
// Update v-model:content when text changes
223220
if (!internalModelEquals(props.content)) {
224221
ctx.emit('update:content', internalModel)

0 commit comments

Comments
 (0)