fix: add to note bug

This commit is contained in:
xiangyu 2022-05-06 00:19:37 +08:00
parent f6e41ac4d9
commit 20cd97d6a9

View File

@ -268,7 +268,7 @@ class Knowledge extends AddonBase {
if (lineIndex < 0) {
lineIndex =
this.currentLine >= 0
? this.currentLine + 1
? this.currentLine + 2
: this.getLinesInNote(note).length + 1;
}
// let parentNode = this.getLineParentInNote(note, lineIndex);