You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the update to Quill 1.1.2 (and specifically this commit)
I'm getting the following error:
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Delta.insert (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:2243:54)
at eval (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:3612:26)
at Array.reduce (native)
at Delta.reduce (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:2317:25)
at normalizeDelta (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:3595:22)
at Editor.applyDelta (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:3345:21)
at eval (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:1959:44)
at Quill.modify (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:2089:22)
at Quill.setContents (https://au.fdy.io:5100/jspm_packages/npm/quill@1.1.2/dist/quill.js:1955:27)
at RichEditable.setValue (https://au.fdy.io:5100/dist/components/editable/rich-editable.js:34:33)
at RichEditable.attached (https://au.fdy.io:5100/dist/components/editable/editable-base.js:47:26)
at Controller.attached (https://au.fdy.io:5100/jspm_packages/npm/aurelia-templating@1.1.2/aurelia-templating.js:3472:24)
at View.attached (https://au.fdy.io:5100/jspm_packages/npm/aurelia-templating@1.1.2/aurelia-templating.js:1563:24)
at ViewSlot.add (https://au.fdy.io:5100/jspm_packages/npm/aurelia-templating@1.1.2/aurelia-templating.js:1726:14)
at eval (https://au.fdy.io:5100/jspm_packages/npm/aurelia-templating@1.1.2/aurelia-templating.js:4417:28)
It is because sometimes from our server the attributes on an insert object exists but is null or undefined.
Since the update to Quill 1.1.2 (and specifically this commit)
I'm getting the following error:
It is because sometimes from our server the attributes on an insert object exists but is null or undefined.
It looks like a null/undefined check needs to be added here:
https://github.com/quilljs/delta/blob/master/lib/delta.js#L26
and here:
https://github.com/quilljs/delta/blob/master/lib/delta.js#L38
The text was updated successfully, but these errors were encountered: