From bc6af98e5052cf033a485dbe1cd2b72ccc90ee0a Mon Sep 17 00:00:00 2001 From: YISH Date: Wed, 18 May 2022 20:40:03 +0800 Subject: [PATCH] :bug: fix settings loading. --- manifest.json | 2 +- package.json | 2 +- src/main.ts | 2 +- versions.json | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index d3e2e95..631b649 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-enhancing-export", "name": "Obsidian Enhancing Export", - "version": "1.0.9", + "version": "1.0.10", "minAppVersion": "0.12.0", "description": "This is a enhancing export plugin for Obsidian. It allows to export to formats like Html, DOCX, ePub and PDF or Markdown(Hugo) etc.", "author": "YISH", diff --git a/package.json b/package.json index a02a997..d78d7f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-enhancing-export", - "version": "1.0.9", + "version": "1.0.10", "description": "This is a enhancing export plugin for Obsidian. It allows to export to formats like Html, DOCX, ePub and PDF or Markdown(Hugo) etc.", "main": "dist/main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index b4f9b89..4a8770e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -83,7 +83,7 @@ export default class UniversalExportPlugin extends Plugin { } public async loadSettings(): Promise { - const settings: UniversalExportPluginSettings = Object.assign({}, await this.loadData()); + const settings: UniversalExportPluginSettings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); settings.items.forEach(v => { Object.assign(v, DEFAULT_SETTINGS.items.find(o => o.name === v.name) ?? {}, v); }); diff --git a/versions.json b/versions.json index 8a104ad..2331326 100644 --- a/versions.json +++ b/versions.json @@ -4,5 +4,6 @@ "1.0.6": "0.12.0", "1.0.7": "0.12.0", "1.0.8": "0.12.0", - "1.0.9": "0.12.0" + "1.0.9": "0.12.0", + "1.0.10": "0.12.0" } \ No newline at end of file