Skip to content

Commit

Permalink
Remove superfluous argument to combineIntoFirstSense
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgrady committed Oct 23, 2023
1 parent b08ff12 commit d21119a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/goals/MergeDuplicates/Redux/MergeDupsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const mergeDupStepSlice = createSlice({
const sensesToCombine = guids
.map((g) => data.senses[g])
.map((s) => senses[s.srcWordId][s.order]);
combineIntoFirstSense(state, sensesToCombine);
combineIntoFirstSense(sensesToCombine);
});

// Clean order of senses in each src word to reflect backend order.
Expand Down Expand Up @@ -370,10 +370,7 @@ const mergeDupStepSlice = createSlice({
});

// Helper Functions
function combineIntoFirstSense(
state: MergeTreeState,
senses: MergeTreeSense[]
): void {
function combineIntoFirstSense(senses: MergeTreeSense[]): void {
// Set the first sense to be merged as Active/Protected.
// This was the top sense when the sidebar was opened.
const mainSense = senses[0];
Expand Down Expand Up @@ -415,7 +412,6 @@ function combineIntoFirstSense(
}
});
});
state.tree.sidebar.senses = senses;
}

export const {
Expand Down

0 comments on commit d21119a

Please sign in to comment.