From c3970bd20d390f1a1f962af938b5697755dad1d5 Mon Sep 17 00:00:00 2001 From: wahyuun Date: Wed, 27 Sep 2023 14:51:29 +0700 Subject: [PATCH] fix bug --- src/views/SimproV2/Divisi/DialogForm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/SimproV2/Divisi/DialogForm.js b/src/views/SimproV2/Divisi/DialogForm.js index dfced74..27ba40d 100644 --- a/src/views/SimproV2/Divisi/DialogForm.js +++ b/src/views/SimproV2/Divisi/DialogForm.js @@ -59,13 +59,15 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi setId(0) setDescription('') setName('') + setParent(null) } } const handleCancel = () => { closeDialog('cancel', 'none') setId(0) setDescription('') - setName('') + setName('') + setParent(null) } const renderForm = () => {