proper handling of deleted notes

This commit is contained in:
zadam
2020-03-23 16:39:03 +01:00
parent 978575498c
commit cb168218fb
5 changed files with 48 additions and 11 deletions

View File

@@ -70,6 +70,10 @@ function mouseLeaveHandler() {
}
async function renderTooltip(note, noteComplement) {
if (note.isDeleted) {
return '<div>Note has been deleted.</div>';
}
const attributes = await note.getAttributes();
let content = '';