mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
fixes for "add child note" button
This commit is contained in:
@@ -402,11 +402,15 @@ $createChildNote.click(async () => {
|
||||
target: 'into'
|
||||
});
|
||||
|
||||
// reloading tree so that the new note appears there
|
||||
// no need to wait for it to finish
|
||||
treeService.reload();
|
||||
|
||||
const [x, y] = getFreePosition();
|
||||
|
||||
mapData.notes.push({ id: note.noteId, x, y });
|
||||
|
||||
await createNoteBox(id, title, x, y);
|
||||
await createNoteBox(note.noteId, title, x, y);
|
||||
});
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user