fix(EditableTest): cutIntoNoteCommand createNote to new API

This commit is contained in:
Jakob Schlanstedt 2025-11-21 11:20:01 +01:00
parent adfa01b8e8
commit a1b9033686

View File

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