fixes to link parsing and tweaks

This commit is contained in:
zadam
2019-08-29 23:08:30 +02:00
parent 10d089240a
commit 1c0b55e422
4 changed files with 27 additions and 3 deletions

View File

@@ -43,6 +43,16 @@ class LinkMapWidget extends StandardWidget {
this.linkMapService.cleanup();
}
}
syncDataReceived(syncData) {
if (syncData.find(sd => sd.entityName === 'attributes' && sd.noteId === this.ctx.note.noteId)) {
// no need to invalidate attributes since the Attribute class listens to this as well
// (and is guaranteed to run first)
if (this.linkMapService) {
this.linkMapService.loadNotesAndRelations();
}
}
}
}
export default LinkMapWidget;