Maybe fix translator deletion?
This caused an error after 9b82373f70
but possibly meant that deleted
translators weren't being properly removed.
This commit is contained in:
parent
9b82373f70
commit
3e3804741f
1 changed files with 2 additions and 2 deletions
|
@ -707,8 +707,8 @@ Zotero.Schema = new function(){
|
|||
|
||||
if (mode == 'translators') {
|
||||
// TODO: Change if the APIs change
|
||||
let newObj = new Zotero[Mode].loadFromFile(entry.path);
|
||||
if (deleted.indexOf(newObj[modeType + "ID"]) == -1) {
|
||||
let newObj = yield Zotero[Mode].loadFromFile(entry.path);
|
||||
if (!deleted.includes(newObj[modeType + "ID"])) {
|
||||
continue;
|
||||
}
|
||||
toDelete.push(entry.path);
|
||||
|
|
Loading…
Add table
Reference in a new issue