Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
fix: Invalid settings state usage
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 18, 2021
1 parent 22b4bc8 commit 7712464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/userscript/source/ui/UnlockingSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ export class UnlockingSettingsUi extends SettingsSectionUi<UnlockingSettings> {
option.enabled = state.items[name].enabled;
}
// Handle policies.
for (const [name, option] of objectEntries(this._host.options.auto.policies.items)) {
for (const [name, option] of objectEntries(
(this._options.items.policies as PolicySettings).items
)) {
option.enabled = (state.items.policies as PolicySettings).items[name].enabled;
}
}
Expand Down

0 comments on commit 7712464

Please sign in to comment.