Fix a citation dialog error when the dialog contents are cleared

This commit is contained in:
Adomas Venčkauskas 2020-01-16 11:07:42 +02:00
parent 09dead3a2a
commit c70c07bb2e

View file

@ -221,7 +221,7 @@ var Zotero_QuickFormat = new function () {
*/
var _quickFormat = Zotero.Promise.coroutine(function* () {
var str = _getEditorContent();
if (str.match(/\s$/)) {
if (str && str.match(/\s$/)) {
locatorLocked = true;
}
var haveConditions = false;