Skip to content

Commit ee3d193

Browse files
committed
🐛 fix(提醒对话框): 修复添加提醒时,无法获取标题内容的问题
1 parent 1461102 commit ee3d193

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/BatchReminderDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class BatchReminderDialog {
183183
const block = await getBlockByID(blockId);
184184

185185
if (block) {
186-
const autoDetected = this.autoDetectDateTimeFromTitle(block.fcontent);
186+
const autoDetected = this.autoDetectDateTimeFromTitle(block?.fcontent || block?.content );
187187
results.push({
188188
blockId,
189189
content: block.content,

src/components/ReminderDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ export class ReminderDialog {
437437
showMessage(t("blockNotExist"));
438438
return;
439439
}
440-
this.blockContent = block?.fcontent || t("unnamedNote");
440+
this.blockContent = block?.fcontent || block?.content|| t("unnamedNote");
441441
// 获取文档ID - 如果blockId就是文档ID,则直接使用,否则获取根块ID
442442
this.documentId = block.root_id || this.blockId;
443443
} catch (error) {

0 commit comments

Comments
 (0)