Merge pull request 'upd: form tambah surat' (#114) from amalia/21-jan-26 into main

Reviewed-on: http://wibugit.wibudev.com/wibu/jenna-mcp/pulls/114
This commit is contained in:
2026-01-21 11:55:14 +08:00

View File

@@ -173,7 +173,7 @@ export default function FormSurat() {
(typeof item.value === "string" && item.value.trim() === "" && item.required) || (typeof item.value === "object" && item.value === null && item.required), (typeof item.value === "string" && item.value.trim() === "" && item.required) || (typeof item.value === "object" && item.value === null && item.required),
); );
} }
return typeof value === "string" && value.trim() === "" ; return typeof value === "string" && value.trim() === "";
}); });
if (isFormKosong) { if (isFormKosong) {
@@ -385,7 +385,7 @@ export default function FormSurat() {
value: item.name, value: item.name,
label: item.name, label: item.name,
}))} }))}
value={jenisSuratFix.name} value={jenisSuratFix.name == "" ? null : jenisSuratFix.name}
onChange={(value) => { onChange={(value) => {
const slug = toSlug(String(value)); const slug = toSlug(String(value));
navigate("/darmasaba/surat?jenis=" + slug); navigate("/darmasaba/surat?jenis=" + slug);