Skip to content

Commit

Permalink
fix: out of mem after Requesting tags to be replaced (#438)
Browse files Browse the repository at this point in the history
* Update files-manager.ts fix #408

* fix typo

---------

Co-authored-by: Harsha Raghu <[email protected]>
  • Loading branch information
MisterPresident and ShootingKing-AM authored Jan 19, 2024
1 parent 21beab7 commit 5720dee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/files-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ export class FileManager {
temp = []
console.info("Requesting tags to be replaced...")
for (let file of this.ownFiles) {
temp.push(file.getClearTags())
let rem = file.getClearTags()
if(rem.params.notes.length) {
temp.push(rem)
}
}
requests.push(AnkiConnect.multi(temp))
temp = []
Expand Down

0 comments on commit 5720dee

Please sign in to comment.