Skip to content

Commit

Permalink
Reset hasProtected when new words loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Nov 13, 2024
1 parent 167527b commit 7185f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/goals/MergeDuplicates/Redux/MergeDupsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ const mergeDuplicatesSlice = createSlice({
const senses: Hash<MergeTreeSense> = {};
const wordsTree: Hash<MergeTreeWord> = {};
const counts: Hash<number> = {};
state.hasProtected = false;
action.payload.forEach((word: Word) => {
state.hasProtected ||= word.accessibility === Status.Protected;
words[word.id] = JSON.parse(JSON.stringify(word));
Expand Down

0 comments on commit 7185f48

Please sign in to comment.