We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f29c41 commit a3597cbCopy full SHA for a3597cb
packages/obsidian/src/main.ts
@@ -340,9 +340,9 @@ export default class MetaBindPlugin extends Plugin implements IPlugin {
340
async loadSettings(): Promise<void> {
341
console.log(`meta-bind | Main >> settings load`);
342
343
- const loadedSettings = (await this.loadData()) as MetaBindPluginSettings;
+ const loadedSettings = ((await this.loadData()) ?? {}) as MetaBindPluginSettings;
344
345
- if (typeof loadedSettings === 'object') {
+ if (typeof loadedSettings === 'object' && loadedSettings != null) {
346
// @ts-expect-error TS2339 remove old config field
347
delete loadedSettings.inputTemplates;
348
0 commit comments