fix creating note from relation map, closes #771

This commit is contained in:
zadam 2019-12-20 19:02:52 +01:00
parent 6d9b702d4c
commit b62d79044a
2 changed files with 4 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "trilium",
"version": "0.38.0-beta",
"version": "0.38.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -129,9 +129,10 @@ class NoteDetailRelationMap {
return;
}
const {note} = await server.post(`notes/${this.ctx.note.noteId}/children`, {
const {note} = await server.post(`notes/${this.ctx.note.noteId}/children?target=into`, {
title,
target: 'into'
content: '',
type: 'text'
});
toastService.showMessage("Click on canvas to place new note");