File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { Dialog , showMessage } from "siyuan" ;
22import { t } from "../utils/i18n" ;
3- import { ensureReminderDataFile , updateBlockReminderBookmark } from "../api" ;
3+ import { ensureReminderDataFile , updateBlockReminderBookmark , getBlockByID } from "../api" ;
44import { getRepeatDescription } from "../utils/repeatUtils" ;
55import { getLocalDateString , getLocalTimeString } from "../utils/dateUtils" ;
66import { RepeatConfig , RepeatSettingsDialog } from "./RepeatSettingsDialog" ;
@@ -992,11 +992,11 @@ class SmartBatchDialog {
992992 }
993993
994994 const reminderId = `${ blockId } _${ Date . now ( ) } _${ Math . random ( ) . toString ( 36 ) . substr ( 2 , 9 ) } ` ;
995-
995+ const block = await getBlockByID ( blockId ) ;
996996 const reminder = {
997997 id : reminderId ,
998998 blockId : blockId ,
999- docId : blockId ,
999+ docId : block . root_id ,
10001000 title : setting . cleanTitle ,
10011001 date : setting . date ,
10021002 completed : false ,
You can’t perform that action at this time.
0 commit comments