Skip to content

Commit

Permalink
[MergeDups] Fix bug preventing use of extra column (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Jan 28, 2025
1 parent 74feaaa commit 976c1f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/goals/MergeDuplicates/Redux/MergeDupsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
} from "goals/MergeDuplicates/Redux/reducerUtilities";
import { StoreActionTypes } from "rootRedux/actions";
import { type Hash } from "types/hash";
import { newWord } from "types/word";

const mergeDuplicatesSlice = createSlice({
name: "mergeDupStepReducer",
Expand Down Expand Up @@ -144,7 +145,7 @@ const mergeDuplicatesSlice = createSlice({
});

// Check if nothing to merge.
const wordToUpdate = state.data.words[wordId];
const wordToUpdate = state.data.words[wordId] || newWord();
if (isEmptyMerge(wordToUpdate, mergeWord)) {
continue;
}
Expand Down

0 comments on commit 976c1f8

Please sign in to comment.