From 82af91801faa16234b4f213cc058a8774e08cd9e Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Mon, 27 May 2024 21:19:23 -0700 Subject: [PATCH] [TM-786] Fix a hook dependency warning. --- src/components/extensive/WorkdayCollapseGrid/WorkdaySection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/extensive/WorkdayCollapseGrid/WorkdaySection.tsx b/src/components/extensive/WorkdayCollapseGrid/WorkdaySection.tsx index 7a303c49b..db64af006 100644 --- a/src/components/extensive/WorkdayCollapseGrid/WorkdaySection.tsx +++ b/src/components/extensive/WorkdayCollapseGrid/WorkdaySection.tsx @@ -68,7 +68,7 @@ const WorkdaySection = ({ demographics, type, variant, onChange }: WorkdaySectio updatedDemographics.splice(index, 1); onChange(updatedDemographics); }, - [demographics, onChange, type] + [demographics, onChange] ); // Tailwind doesn't supply classes for high row counts, so we apply this prop ourselves.