Skip to content

Commit

Permalink
Fix error loading plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Jul 11, 2022
1 parent 7158ada commit ca0c448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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-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",
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ca0c448

Please sign in to comment.