fix :
Deskripsi: - laporan divisi grup - order by divisi No Issues
This commit is contained in:
@@ -77,6 +77,9 @@ export async function GET(request: Request) {
|
|||||||
idUser: true
|
idUser: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
orderBy: {
|
||||||
|
createdAt: 'desc'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -66,13 +66,23 @@ export default function CreateReport() {
|
|||||||
onReport(val, value)
|
onReport(val, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (val == null || val == "") {
|
||||||
|
setTampil(false)
|
||||||
|
toast.error("Error! harus memilih grup")
|
||||||
|
}
|
||||||
setIsGroup(String(val))
|
setIsGroup(String(val))
|
||||||
}
|
}
|
||||||
|
|
||||||
function onChangeDate(val: any) {
|
function onChangeDate(val: any) {
|
||||||
if (val != null && val != "" && isGroup != "" && isGroup != null) {
|
if (val != null && val != "" && isGroup != "" && isGroup != "null") {
|
||||||
onReport(isGroup, val)
|
onReport(isGroup, val)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isGroup == null || isGroup == "") {
|
||||||
|
setTampil(false)
|
||||||
|
toast.error("Error! harus memilih grup")
|
||||||
|
}
|
||||||
|
|
||||||
setValue(val)
|
setValue(val)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user