feat: disallow removing all comment thread targets (#779)
* feat: disallow removing all comment thread targets Closes #431 * Rename variables * Fix console error --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -79,7 +79,8 @@ export function Checkbox({
|
||||
indeterminate,
|
||||
variant = CheckboxVariant.Primary,
|
||||
}: OwnProps) {
|
||||
const [isInternalChecked, setIsInternalChecked] = React.useState(false);
|
||||
const [isInternalChecked, setIsInternalChecked] =
|
||||
React.useState<boolean>(false);
|
||||
|
||||
React.useEffect(() => {
|
||||
setIsInternalChecked(checked);
|
||||
|
||||
Reference in New Issue
Block a user