Skip to content

Commit

Permalink
fix: delete useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchimeow authored and Logos50607 committed Oct 27, 2024
1 parent e9c6768 commit b2b9e8b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/appointment/AppointmentCollectionTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ const AppointmentCollectionTabs: React.VFC<{
setSelectedAppointmentPlanId(appointmentPlanId)
}

useEffect(() => {
if (!!appointmentPlanId) {
setSelectedAppointmentPlanId(appointmentPlanId)
}
}, [appointmentPlanId, setSelectedAppointmentPlanId])

useEffect(() => {
if (appointmentPlans) {
appointmentPlans.forEach((appointmentPlan, index) => {
Expand Down

0 comments on commit b2b9e8b

Please sign in to comment.