Vanessa 2023-04-25 19:36:42 +08:00
parent 4193cdd0e5
commit d9813b016f
3 changed files with 27 additions and 8 deletions

View file

@ -1094,7 +1094,7 @@ const editKeydown = (event: KeyboardEvent) => {
}
if (!isFileFocus && matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event)) {
fetchPost("/api/riff/getTreeRiffDueCards", {rootID: protyle.block.rootID}, (response) => {
openCardByData(response.data, "doc", protyle.block.rootID, protyle.title.editElement.textContent);
openCardByData(response.data, "doc", protyle.block.rootID, protyle.title.editElement.textContent || "Untitled");
});
event.preventDefault();
return true;