From 26c323f31c395f1903859b2fa5ade35a106a079a Mon Sep 17 00:00:00 2001 From: Manumartin95 Date: Wed, 4 Oct 2023 17:00:07 +0200 Subject: [PATCH] refactor: remove onchange --- .../components/activity-form/components/select-role-section.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/features/binnacle/features/activity/ui/components/activity-form/components/select-role-section.tsx b/src/features/binnacle/features/activity/ui/components/activity-form/components/select-role-section.tsx index e004c8c5..ed46956f 100644 --- a/src/features/binnacle/features/activity/ui/components/activity-form/components/select-role-section.tsx +++ b/src/features/binnacle/features/activity/ui/components/activity-form/components/select-role-section.tsx @@ -20,7 +20,6 @@ export const SelectRoleSection: FC = (props: Props) => { const { t } = useTranslation() const { field: showRecentRoleField } = useController({ control, name: 'showRecentRole' }) const { field: recentProjectRoleField } = useController({ control, name: 'recentProjectRole' }) - const { field: projectField } = useController({ control, name: 'project' }) const [recentRoleListIsEmpty, setRecentRoleListIsEmpty] = useState(false) const organizationRef = useRef(null) @@ -65,7 +64,6 @@ export const SelectRoleSection: FC = (props: Props) => { showRecentRoleField.onChange(false) }} onChange={(value) => { - projectField.onChange(value.project) recentProjectRoleField.onChange(value) }} projectRole={recentProjectRoleField.value}