Skip to content

Commit 3b83a22

Browse files
author
Jakob Schlanstedt
committed
fix(EditableTest): cutIntoNoteCommand createNote to new API
1 parent 0dd4912 commit 3b83a22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/client/src/widgets/type_widgets/text/EditableText.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export default function EditableText({ note, parentComponent, ntxId, noteContext
154154
// without await as this otherwise causes deadlock through component mutex
155155
const parentNotePath = appContext.tabManager.getActiveContextNotePath();
156156
if (noteContext && parentNotePath) {
157-
note_create.createNote(parentNotePath, {
157+
note_create.createNote({
158+
parentNoteLink: parentNotePath,
159+
target: "into",
158160
isProtected: note.isProtected,
159161
saveSelection: true,
160162
textEditor: await noteContext?.getTextEditor()

0 commit comments

Comments
 (0)