|
|
|
@ -21,7 +21,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi
|
|
|
|
|
const { t } = useTranslation() |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
console.log('dataEdit', dataEdit); |
|
|
|
|
if (typeDialog === "Edit") { |
|
|
|
|
setId(dataEdit.id) |
|
|
|
|
setCode(dataEdit.code) |
|
|
|
@ -54,7 +53,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi
|
|
|
|
|
type, |
|
|
|
|
allocation |
|
|
|
|
} |
|
|
|
|
console.log('data', data); |
|
|
|
|
closeDialog('save', data); |
|
|
|
|
} else { |
|
|
|
|
data = { |
|
|
|
@ -66,7 +64,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi
|
|
|
|
|
type, |
|
|
|
|
allocation |
|
|
|
|
} |
|
|
|
|
console.log('data', data); |
|
|
|
|
closeDialog('edit', data); |
|
|
|
|
} |
|
|
|
|
handleClear() |
|
|
|
|