fix: #104 init data to empty object

This commit is contained in:
Aron Griffis 2024-04-21 09:02:38 -04:00
parent f8c9e4794e
commit d5b48c7cac

View file

@ -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) {