fix: settings persistance
This commit is contained in:
parent
bcae5b3cf2
commit
56f38038b3
2 changed files with 2 additions and 2 deletions
|
|
@ -134,7 +134,7 @@ export const uiSlice = createSlice({
|
|||
},
|
||||
// Rules
|
||||
addRule: (state, action: PayloadAction<RuleWithSource>) => {
|
||||
state.ruleSettings[action.payload.name] = DEFAULT_RULE_SETTING;
|
||||
state.ruleSettings[action.payload.name!] = DEFAULT_RULE_SETTING;
|
||||
},
|
||||
toggleRuleSetting: (state, action: PayloadAction<string>) => {
|
||||
const setting = state.ruleSettings[action.payload];
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const saveSubsetFilters = [
|
|||
"codeToEdit",
|
||||
]),
|
||||
createFilter("config", ["defaultModelTitle"]),
|
||||
createFilter("ui", ["toolSettings", "toolGroupSettings"]),
|
||||
createFilter("ui", ["toolSettings", "toolGroupSettings", "ruleSettings"]),
|
||||
createFilter("indexing", []),
|
||||
createFilter("tabs", ["tabs"]),
|
||||
createFilter("profiles", [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue