setting the relation target note

This commit is contained in:
zadam
2020-07-13 00:15:00 +02:00
parent 1c97310e92
commit 62cacf85ed
6 changed files with 90 additions and 58 deletions

View File

@@ -13,11 +13,11 @@ export async function showDialog() {
noteAutocompleteService.initNoteAutocomplete($autoComplete, { hideGoToSelectedNoteButton: true })
.on('autocomplete:selected', function(event, suggestion, dataset) {
if (!suggestion.path) {
if (!suggestion.notePath) {
return false;
}
appContext.tabManager.getActiveTabContext().setNote(suggestion.path);
appContext.tabManager.getActiveTabContext().setNote(suggestion.notePath);
});
noteAutocompleteService.showRecentNotes($autoComplete);