Skip to content

Commit

Permalink
Merge pull request #2249 from upalatucci/fix-actiondropdown-item
Browse files Browse the repository at this point in the history
CNV-50786: fix accessReview on migration action
  • Loading branch information
openshift-merge-bot[bot] authored Nov 6, 2024
2 parents bd994d9 + b495177 commit 8eb66c8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ type ActionDropdownItemProps = {

const ActionDropdownItem: FC<ActionDropdownItemProps> = ({ action, setIsOpen }) => {
const { t } = useKubevirtTranslation();
const [actionAllowed] = useAccessReview(action?.accessReview || {});
const [accessReview] = useAccessReview(action?.accessReview || {});

const actionAllowed = accessReview || action?.accessReview === undefined;
const isCloneDisabled = !actionAllowed && action?.id === 'vm-action-clone';

const handleClick = () => {
Expand Down

0 comments on commit 8eb66c8

Please sign in to comment.