Skip to content

Commit

Permalink
DT-1082: Bug fix for correct manage DAC link location (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong authored Dec 6, 2024
1 parent dad1fbc commit 748caa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/manage_dac_table/ManageDacTableCellData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Styles} from '../../libs/theme';
import {Delete} from '@mui/icons-material';
import {Link} from 'react-router-dom';
import editPencilIcon from '../../images/edit_pencil.svg';
import { checkEnv, envGroups } from '../../utils/EnvironmentUtils';
import {DAAUtils} from '../../utils/DAAUtils';

export function nameCellData({name = '- -', dac, viewMembers, dacId, label= 'dac-name'}) {
return {
Expand Down Expand Up @@ -66,7 +66,7 @@ export function actionsCellData({dac, deleteDac, userRole}) {
<div style={{ paddingTop: '5px' }}>
<Link
to={{
pathname: checkEnv(envGroups.DEV) ? `/manage_edit_dac_daa/${dac.dacId}` : `/manage_edit_dac/${dac.dacId}`,
pathname: DAAUtils.isEnabled() ? `/manage_edit_dac_daa/${dac.dacId}` : `/manage_edit_dac/${dac.dacId}`,
state: { userRole: userRole }
}}
data-tip={`Edit ${dac.name}`}
Expand Down

0 comments on commit 748caa6

Please sign in to comment.