Skip to content

Commit

Permalink
fix: Func getOnlyNeededActions wasn't dealing with divider as hr
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Jan 23, 2024
1 parent 3636fe3 commit ec4acf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/ActionsMenu/Actions/helpers.js
Expand Up @@ -55,7 +55,8 @@ export const getOnlyNeededActions = (actions, file) => {
// We don't want to have an hr as the latest actions available
.filter((cleanedAction, idx, cleanedActions) => {
return !(
getActionName(cleanedAction) === 'hr' &&
(getActionName(cleanedAction) === 'hr' ||
getActionName(cleanedAction) === 'divider') &&
idx === cleanedActions.length - 1
)
})
Expand Down

0 comments on commit ec4acf6

Please sign in to comment.