From ae30a5a418914f6c6af1550c7a5955ffa0d00e40 Mon Sep 17 00:00:00 2001 From: lishid Date: Sun, 24 Jan 2021 15:41:47 -0500 Subject: [PATCH] Update best practice for settings. --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index eb660ce..eeb3dda 100644 --- a/main.ts +++ b/main.ts @@ -58,7 +58,7 @@ export default class MyPlugin extends Plugin { } async loadSettings() { - this.settings = Object.assign(DEFAULT_SETTINGS, await this.loadData()); + this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); } async saveSettings() {