Skip to content

Commit 5be9496

Browse files
authored
fix untrack note after remove review tag (#111)
2 parents 959c5a0 + 9556d47 commit 5be9496

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

docs/docs/changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
## [1.12.5.17]
8+
9+
- fix [#110][Bug]: 删除review标签,在侧边栏笔记队列还会显示这个笔记
10+
711
## [1.12.5.16]
812

913
- fix #107 [Bug]: Hotkeys doesn't work in non-tab mode
1014

11-
1215
## [1.12.5.15]
1316

1417
- fix #97, postpone cards in note;

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-spaced-repetition-recall",
33
"name": "Spaced Repetition Recall",
4-
"version": "1.12.5.16",
4+
"version": "1.12.5.17",
55
"minAppVersion": "1.2.8",
66
"description": "Fight the forgetting curve by reviewing flashcards & entire notes.",
77
"author": "Newdea",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-spaced-repetition",
3-
"version": "1.12.5.16",
3+
"version": "1.12.5.17",
44
"description": "Fight the forgetting curve by reviewing flashcards & entire notes.",
55
"main": "main.js",
66
"scripts": {

src/dataStore/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,12 +496,12 @@ export class DataStore {
496496
const note = Iadapter.instance.vault.getAbstractFileByPath(path) as TFile;
497497
let cardName: string = null;
498498

499-
if (note != null && trackedFile.tags.length > 0) {
499+
if (note != null && trackedFile) {
500500
const fileCachedData = Iadapter.instance.metadataCache.getFileCache(note) || {};
501501
const tags = getAllTags(fileCachedData) || [];
502502
const deckname = Tags.getNoteDeckName(note, this.settings);
503503
cardName = Tags.getTagFromSettingTags(tags, this.settings.flashcardTags);
504-
if (deckname !== null || this.settings.convertFoldersToDecks) {
504+
if (deckname !== null) {
505505
// || cardName !== null
506506
// it's taged file, can't untrack by this.
507507
console.log(path + " is taged file, can't untrack by this.");

0 commit comments

Comments
 (0)