fixes for link map

This commit is contained in:
zadam
2019-08-27 22:19:32 +02:00
parent 242bea236f
commit a4acbf3aea
6 changed files with 27 additions and 14 deletions

View File

@@ -20,12 +20,14 @@ export async function showDialog() {
$maxNotesInput.val(10);
LINK_TYPES.forEach(lt => $("#link-map-" + lt).prop('checked', true));
const note = noteDetailService.getActiveNoteId();
const note = noteDetailService.getActiveNote();
if (!note) {
return;
}
$linkMapContainer.css("height", $("body").height() - 150);
linkMapService = new LinkMapService(note, $linkMapContainer);
linkMapService.render();