From 8b1c6b61b5f5e2fe3c67f30dfcf7a1b47a25c94e Mon Sep 17 00:00:00 2001 From: David Nunez Date: Mon, 15 Jan 2024 10:34:56 -0500 Subject: [PATCH] update work title --- epictrack-web/src/components/work/WorkForm/index.tsx | 4 +--- .../src/components/workPlan/about/aboutDetails/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/epictrack-web/src/components/work/WorkForm/index.tsx b/epictrack-web/src/components/work/WorkForm/index.tsx index a228ec8ea..255d8c03c 100644 --- a/epictrack-web/src/components/work/WorkForm/index.tsx +++ b/epictrack-web/src/components/work/WorkForm/index.tsx @@ -108,9 +108,7 @@ export default function WorkForm({ ...props }) { }, [ctx.id]); React.useEffect(() => { - ctx.setTitle( - ctx.item ? work?.title + " - " + work?.work_type?.name : "Create Work" - ); + ctx.setTitle(ctx.item ? work?.title : "Create Work"); }, [ctx.title, ctx.item]); const methods = useForm({ diff --git a/epictrack-web/src/components/workPlan/about/aboutDetails/index.tsx b/epictrack-web/src/components/workPlan/about/aboutDetails/index.tsx index 2ba442c22..99130b3dd 100644 --- a/epictrack-web/src/components/workPlan/about/aboutDetails/index.tsx +++ b/epictrack-web/src/components/workPlan/about/aboutDetails/index.tsx @@ -1,6 +1,6 @@ import { Grid } from "@mui/material"; import ProjectDetails from "./ProjectDetails"; -import WorkDetials from "./WorkDetails"; +import WorkDetails from "./WorkDetails"; const AboutDetials = () => { return ( @@ -9,7 +9,7 @@ const AboutDetials = () => { - + );