Skip to content

Commit

Permalink
EPMRPP-96118 || code review fix - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian committed Nov 12, 2024
1 parent 8a1215f commit acd75a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export const ProjectActionMenu = ({ details }) => {
organizationSlug,
} = details;
const roles = useSelector(userRolesSelector);
const projectUserRoles = { ...roles, projectRole };
const dispatch = useDispatch();
const { formatMessage } = useIntl();
const actionsButtons = useMemo(() => {
const projectUserRoles = { ...roles, projectRole };
return [
{
actionLabel: formatMessage(COMMON_LOCALE_KEYS.RENAME),
Expand Down Expand Up @@ -85,7 +85,7 @@ export const ProjectActionMenu = ({ details }) => {
hasPermission: canDeleteProject(projectUserRoles),
},
];
}, [projectUserRoles]);
}, [roles, projectRole]);

return (
<Popover
Expand Down

0 comments on commit acd75a0

Please sign in to comment.