Merge pull request #257 from bipproduction/amalia/25-september-24

Amalia/25 september 24
This commit is contained in:
Amalia
2024-09-25 17:37:45 +08:00
committed by GitHub
8 changed files with 51 additions and 36 deletions

View File

@@ -66,13 +66,23 @@ export default function CreateReport() {
onReport(val, value)
}
if (val == null || val == "") {
setTampil(false)
toast.error("Error! harus memilih grup")
}
setIsGroup(String(val))
}
function onChangeDate(val: any) {
if (val != null && val != "" && isGroup != "" && isGroup != null) {
if (val != null && val != "" && isGroup != "" && isGroup != "null") {
onReport(isGroup, val)
}
if (isGroup == null || isGroup == "") {
setTampil(false)
toast.error("Error! harus memilih grup")
}
setValue(val)
}