Skip to content

Commit 434d8b2

Browse files
authored
fix delete description (#556)
Signed-off-by: maissa SOUISSI <[email protected]>
1 parent d76fb3a commit 434d8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/inputs/react-hook-form/description-field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function DescriptionField() {
2020

2121
const handleOpenDescription = () => {
2222
setIsDescriptionFieldVisible(true);
23-
setValue(FieldConstants.DESCRIPTION, '');
2423
};
2524

2625
const handleCloseDescription = () => {
2726
setIsDescriptionFieldVisible(false);
27+
setValue(FieldConstants.DESCRIPTION, '');
2828
};
2929

3030
return (

0 commit comments

Comments
 (0)