In the ProjectList view, when we select 'View Details', the project is automatically set to 'marcosecure' instead of the selected project.

This commit is contained in:
Kartik Sharma 2025-09-23 11:06:16 +05:30
parent 772a3e2829
commit 4683eff749

View File

@ -65,6 +65,7 @@ const ProjectListView = ({ projectData, recall }) => {
const handleClose = () => setShowModal(false);
const handleViewProject = () => {
dispatch(setProjectId(projectInfo.id))
navigate(`/projects/details`);
};
@ -168,7 +169,7 @@ const ProjectListView = ({ projectData, recall }) => {
<a
aria-label="click to View details"
className="dropdown-item"
onClick={() => navigate(`/projects/details`)}
onClick={handleViewProject}
>
<i className="bx bx-detail me-2"></i>
<span className="align-left">View details</span>