link fixes

This commit is contained in:
zadam
2019-08-19 20:19:42 +02:00
parent 3cb421143f
commit c9d0b8cc40
3 changed files with 4 additions and 60 deletions

View File

@@ -55,13 +55,11 @@ class LinkMapWidget extends StandardWidget {
async loadNotesAndRelations() {
this.cleanup();
const linkTypes = [ "hyper", "image", "relation", "relation-map" ];
const maxNotes = 50;
const currentNoteId = this.ctx.note.noteId;
const links = await server.post(`notes/${currentNoteId}/link-map`, {
linkTypes,
maxNotes,
maxDepth: 1
});