Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Jan 31, 2025
1 parent 57ed501 commit 1667991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvat-ui/src/components/job-item/job-actions-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function JobActionsMenu(props: Props): JSX.Element {
const dispatch = useDispatch();
const history = useHistory();

const onClickMenuWrapper = useCallback(
const onClickMenu = useCallback(
(action: MenuInfo) => {
if (action.key === Actions.TASK) {
history.push(`/tasks/${job.taskId}`);
Expand Down Expand Up @@ -71,7 +71,7 @@ function JobActionsMenu(props: Props): JSX.Element {
return (
<Menu
className='cvat-job-item-menu'
onClick={onClickMenuWrapper}
onClick={onClickMenu}
>
<Menu.Item key={Actions.TASK} disabled={job.taskId === null}>Go to the task</Menu.Item>
<Menu.Item key={Actions.PROJECT} disabled={job.projectId === null}>Go to the project</Menu.Item>
Expand Down

0 comments on commit 1667991

Please sign in to comment.