From 839dfa3dc3b4b74b6aa6a5652684a9307baa6d1a Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Thu, 17 Jul 2025 15:42:33 +0530 Subject: [PATCH] removed unused code --- src/components/Project/Infrastructure/WorkItem.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Project/Infrastructure/WorkItem.jsx b/src/components/Project/Infrastructure/WorkItem.jsx index 506878ce..64d68457 100644 --- a/src/components/Project/Infrastructure/WorkItem.jsx +++ b/src/components/Project/Infrastructure/WorkItem.jsx @@ -23,6 +23,7 @@ import { import { refreshData } from "../../../slices/localVariablesSlice"; import GlobalModel from "../../common/GlobalModel"; import { useDeleteMasterItem } from "../../../hooks/masterHook/useMaster"; +import { useSelector } from "react-redux"; const WorkItem = ({ workItem, @@ -31,7 +32,7 @@ const WorkItem = ({ forWorkArea, deleteHandleTask, }) => { - // const { projectId } = useParams(); + // const projectId = useSelector((store)=>store.localVariables.projectId) const isTaskPlanning = /^\/activities\/task$/.test(location.pathname); const [itemName, setItemName] = useState(""); @@ -239,7 +240,7 @@ const isTaskPlanning = /^\/activities\/task$/.test(location.pathname); {(ManageInfra || - (!projectId && + ( ManageAndAssignTak && PlannedWork !== CompletedWork)) && (