Skip to content

Commit

Permalink
Fix unable to update inbox for newly created inboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachatoo committed Mar 6, 2024
1 parent cd749a3 commit d019908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/settings/InboxPluginSettingsV2.ts
Expand Up @@ -13,7 +13,7 @@ export interface InboxPluginSettingsV2 {
}

export const DEFAULT_SETTINGS: InboxPluginSettingsV2 = Object.freeze({
inboxes: [DEFAULT_INBOX],
inboxes: [{ ...DEFAULT_INBOX }],
walkthroughStatus: "unstarted",
});

Expand Down
2 changes: 1 addition & 1 deletion src/store.ts
Expand Up @@ -37,7 +37,7 @@ function createStore() {

function addInbox() {
update((settings) => {
settings.inboxes.push(DEFAULT_INBOX);
settings.inboxes.push({ ...DEFAULT_INBOX });
return settings;
});
}
Expand Down

0 comments on commit d019908

Please sign in to comment.