From ca0c448ad275f790c7ea5b8e0fe13ec041a0e914 Mon Sep 17 00:00:00 2001 From: mgmeyers Date: Mon, 11 Jul 2022 15:13:53 -0700 Subject: [PATCH] Fix error loading plugin --- manifest.json | 2 +- src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 6dbcae9..132b2ad 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-list-callouts", "name": "List Callouts", - "version": "1.0.2", + "version": "1.0.3", "minAppVersion": "0.15.0", "description": "Create simple callouts in lists.", "author": "mgmeyers", diff --git a/src/main.ts b/src/main.ts index fa406df..ac82942 100644 --- a/src/main.ts +++ b/src/main.ts @@ -105,8 +105,8 @@ export default class ListCalloutsPlugin extends Plugin { const loadedSettings = await this.loadData(); this.settings = DEFAULT_SETTINGS.map((s, i) => { - return Object.assign({}, s, loadedSettings[i]); - }) + return Object.assign({}, s, loadedSettings ? loadedSettings[i] : {}); + }); } async saveSettings() {