Skip to content

Commit

Permalink
Remove unnecessary optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 15, 2024
1 parent 3fb8ef7 commit 6f9eaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/dataviews-layouts/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function ListItem< Item >( {
( action ) => action.isPrimary && !! action.icon
);
return {
primaryAction: _primaryActions?.[ 0 ],
primaryAction: _primaryActions[ 0 ],
eligibleActions: _eligibleActions,
};
}, [ actions, item ] );
Expand Down

0 comments on commit 6f9eaff

Please sign in to comment.