Skip to content

Commit

Permalink
🐛 fix settings loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyish committed May 18, 2022
1 parent e1cbc56 commit bc6af98
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class UniversalExportPlugin extends Plugin {
}

public async loadSettings(): Promise<void> {
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);
});
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit bc6af98

Please sign in to comment.