state management fixes

This commit is contained in:
zadam
2019-08-28 20:29:10 +02:00
parent ff1d312a43
commit 650d9e0b27
8 changed files with 20 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ const linkOverlays = [
export default class LinkMap {
constructor(note, $linkMapContainer, options = {}) {
this.note = note;
this.options = $.extend({
this.options = Object.assign({
maxDepth: 10,
maxNotes: 30,
zoom: 1.0
@@ -39,7 +39,7 @@ export default class LinkMap {
}
async loadNotesAndRelations(options = {}) {
this.options = $.extend(this.options, options);
this.options = Object.assign(this.options, options);
this.cleanup();