From abc5b371934f804bcdff26625e82cd29d9509f2b Mon Sep 17 00:00:00 2001 From: kylerpan Date: Wed, 18 Oct 2023 17:27:20 -0700 Subject: [PATCH] forgot to set default name when click edit year --- site/src/pages/RoadmapPage/Year.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/site/src/pages/RoadmapPage/Year.tsx b/site/src/pages/RoadmapPage/Year.tsx index cad66e3b..9fa199d1 100644 --- a/site/src/pages/RoadmapPage/Year.tsx +++ b/site/src/pages/RoadmapPage/Year.tsx @@ -56,6 +56,7 @@ const Year: FC = ({ yearIndex, data }) => { const handleEditYearClick = (event: React.MouseEvent) => { setShowAddQuarter(false); // hide any other currently displayed menu bar options setPlaceholderYear(data.startYear); // set default year to current year + setPlaceholderName(data.name); setShowEditYear(!showEditYear); setEditYearTarget(event.target); }