Skip to content

Commit 7b57919

Browse files
committed
feat(settings): Empty null setting data when booting.
1 parent 392f429 commit 7b57919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ export default class InvioPlugin extends Plugin {
11341134
this.settings = Object.assign(
11351135
{},
11361136
cloneDeep(DEFAULT_SETTINGS),
1137-
messyConfigToNormal(rawConf)
1137+
rawConf ? messyConfigToNormal(rawConf) : {}
11381138
);
11391139
if (!this.settings.s3) {
11401140
this.settings.s3 = DEFAULT_SETTINGS.s3

0 commit comments

Comments
 (0)