diff --git a/chrome/content/zotero/xpcom/connector/server_connector.js b/chrome/content/zotero/xpcom/connector/server_connector.js index f3cbd0e71b..2c3c447fff 100644 --- a/chrome/content/zotero/xpcom/connector/server_connector.js +++ b/chrome/content/zotero/xpcom/connector/server_connector.js @@ -302,7 +302,7 @@ Zotero.Server.Connector.SaveSession.prototype._updateItems = Zotero.serial(async var libraryID = library.libraryID; var tags = this._currentTags.trim(); - tags = tags ? tags.split(/\s*,\s*/) : []; + tags = tags ? tags.split(/\s*,\s*/).filter(x => x) : []; Zotero.debug("Updating items for connector save session " + this.id);