fix(EditableTest): cutIntoNoteCommand createNote to new API

This commit is contained in:
Jakob Schlanstedt 2025-11-21 11:20:01 +01:00
parent 213c36ba84
commit bdcb84a394

View File

@ -155,7 +155,9 @@ export default function EditableText({ note, parentComponent, ntxId, noteContext
// without await as this otherwise causes deadlock through component mutex // without await as this otherwise causes deadlock through component mutex
const parentNotePath = appContext.tabManager.getActiveContextNotePath(); const parentNotePath = appContext.tabManager.getActiveContextNotePath();
if (noteContext && parentNotePath) { if (noteContext && parentNotePath) {
note_create.createNote(parentNotePath, { note_create.createNote({
parentNoteLink: parentNotePath,
target: "into",
isProtected: note.isProtected, isProtected: note.isProtected,
saveSelection: true, saveSelection: true,
textEditor: await noteContext?.getTextEditor() textEditor: await noteContext?.getTextEditor()