Skip to content

Commit

Permalink
CNV-50786: fix accessReview on migration action
Browse files Browse the repository at this point in the history
  • Loading branch information
upalatucci committed Nov 6, 2024
1 parent 8647e80 commit b495177
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 b495177

Please sign in to comment.