Skip to content

Commit

Permalink
fix 有时候会出现这种只有一个日记还报错的情况 close #166
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Oct 5, 2023
1 parent fdd914f commit c982c3c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### [2023-10-06] v1.2.8

稳定性修复, fix [#166](https://github.com/frostime/siyuan-dailynote-today/issues/166)

### [2023-09-19] v1.2.7

稳定性修复, 解决思源 2.10.6 版本移动标题块失效的问题


### [2023-08-15] v1.2.5

fix: [#159](https://github.com/frostime/siyuan-dailynote-today/issues/159)
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"en_US": "Daily Note Today"
},
"url": "https://github.com/frostime/siyuan-dailynote-today",
"version": "1.2.7",
"version": "1.2.8",
"minAppVersion": "2.10.6",
"description": {
"zh_CN": "自动创建日记 + 快速打开日记 + 日程 TODO 管理 + 移动块功能",
Expand Down
4 changes: 4 additions & 0 deletions src/func/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export async function checkDuplicateDiary(): Promise<boolean> {
});
docs = uniqueDocs;

if (docs.length <= 1) {
return false;
}

console.warn(`Conflict daily note: ${notebook.name} ${hpath}`);

let confilctTable = [];
Expand Down
5 changes: 2 additions & 3 deletions src/i18n/CHANGELOG-en_US.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### [2023-09-19] v1.2.7

Stability, fix error for moving block in v2.10.6
### [2023-10-06] v1.2.8

Stability, fix[#166](https://github.com/frostime/siyuan-dailynote-today/issues/166)
4 changes: 2 additions & 2 deletions src/i18n/CHANGELOG-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### [2023-09-19] v1.2.7
### [2023-10-06] v1.2.8

稳定性修复, 解决思源 2.10.6 版本移动标题块失效的问题
稳定性修复, fix [#166](https://github.com/frostime/siyuan-dailynote-today/issues/166)

0 comments on commit c982c3c

Please sign in to comment.