small fixes

This commit is contained in:
zadam
2020-03-31 21:47:15 +02:00
parent 4485650cbc
commit a73739d03e
5 changed files with 8 additions and 12 deletions

View File

@@ -48,7 +48,9 @@ export async function showDialog(widget) {
$autoComplete.on('autocomplete:cursorchanged', function(event, suggestion, dataset) {
const noteId = treeService.getNoteIdFromNotePath(suggestion.path);
setDefaultLinkTitle(noteId);
if (noteId) {
setDefaultLinkTitle(noteId);
}
});
noteAutocompleteService.showRecentNotes($autoComplete);