diff --git a/chrome/content/zotero/actors/TranslationParent.jsm b/chrome/content/zotero/actors/TranslationParent.jsm index 38e77c6354..b30f49a7a2 100644 --- a/chrome/content/zotero/actors/TranslationParent.jsm +++ b/chrome/content/zotero/actors/TranslationParent.jsm @@ -39,7 +39,7 @@ const TranslationManager = new class { removeHandler(id, name, handler) { this._registeredRemoteTranslates.get(id).handlers[name] - = this._registeredRemoteTranslates.get(id).handlers[name].filter(h => h !== handler); + = this._registeredRemoteTranslates.get(id).handlers[name]?.filter(h => h !== handler); } clearHandlers(id, name) {