mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
fix: #104 init data to empty object
This commit is contained in:
parent
f8c9e4794e
commit
d5b48c7cac
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ export function getCache(): RequestCache {
|
|||
export class GithubLinkPlugin extends Plugin {
|
||||
public cacheInterval: number | undefined;
|
||||
async onload() {
|
||||
let data = await this.loadData();
|
||||
let data = (await this.loadData()) || {};
|
||||
|
||||
// Migrate settings from data root to settings -- remove in v1.0.0
|
||||
if (data.accounts) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue