Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-1801]: fix bad setState for checkbox (#1884)
This pull request includes a simplification of the `Checkbox` component in the `frontend/webapp/reuseable-components/checkbox/index.tsx` file. The changes streamline the `useEffect` hook and the `handleToggle` function. Key changes: * Simplified the `useEffect` hook to only set the `isChecked` state based on the `initialValue` dependency. * Refactored the `handleToggle` function to directly call `onChange` with the new value if provided, otherwise update the `isChecked` state.
- Loading branch information