Actually change code that deletes automatic tags

Follow-up to d7dc5670d5
This commit is contained in:
Dan Stillman 2019-03-07 03:35:37 -05:00
parent a4613e6d12
commit 85c6ec0ca4

View file

@ -396,11 +396,12 @@ Zotero.Tags = new function() {
* Remove all automatic tags in the given library
*/
this.removeAutomaticFromLibrary = async function (libraryID, onProgress) {
var tagType = 1;
var tagIDs = await this.getAutomaticInLibrary(libraryID);
if (onProgress) {
onProgress(0, tagIDs.length);
}
return this.removeFromLibrary(libraryID, tagIDs, onProgress);
return this.removeFromLibrary(libraryID, tagIDs, onProgress, tagType);
};