Skip to content

Commit 499dc87

Browse files
committed
emergency bug fix
1 parent 76c748e commit 499dc87

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Obsidian Meta Bind Changelog
22

3+
# 0.6.1
4+
5+
Bug Fixes
6+
7+
- fixed a bug with the settings migration causing the settings to be deleted
8+
39
# 0.6.0
410

511
New Features

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-meta-bind-plugin",
33
"name": "Meta Bind Plugin",
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"minAppVersion": "0.14.0",
66
"description": "This plugin can create input fields inside your notes and bind them to metadata fields.",
77
"author": "Moritz Jung",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-meta-bind-plugin",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "This plugin can create input fields inside your notes and bind them to metadata fields.",
55
"main": "main.js",
66
"scripts": {

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ export default class MetaBindPlugin extends Plugin implements IPlugin {
142142

143143
let loadedSettings = await this.loadData();
144144

145-
loadedSettings = this.applyTemplatesMigration(loadedSettings);
145+
loadedSettings = this.applyTemplatesMigration(Object.assign({}, DEFAULT_SETTINGS, loadedSettings));
146146

147-
this.settings = Object.assign({}, DEFAULT_SETTINGS, loadedSettings);
147+
this.settings = loadedSettings;
148+
149+
await this.saveSettings();
148150
}
149151

150152
async saveSettings(): Promise<void> {

0 commit comments

Comments
 (0)