Skip to content

Commit

Permalink
fix(connect): don't override whole state when saving permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 31, 2024
1 parent ec8c0d9 commit 46986ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/connect/src/core/AbstractMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export abstract class AbstractMethod<Name extends CallMethodPayload['method'], P
const origin = DataManager.getSettings('origin')!;
storage.saveForOrigin(
state => ({
...state,
permissions: [...(state.permissions || []), ...permissionsToSave],
}),
origin,
Expand Down

0 comments on commit 46986ad

Please sign in to comment.