fix(web): clear birth date (#29959)

This commit is contained in:
Daniel Dietzler
2026-07-15 18:32:53 +00:00
committed by GitHub
parent b75e6520bb
commit eda605c534
2 changed files with 2 additions and 2 deletions
@@ -15,7 +15,7 @@
let birthDate = $derived(person.birthDate ? DateTime.fromISO(person.birthDate) : undefined);
const onSubmit = async () => {
const success = await handleUpdatePersonBirthDate(person, birthDate?.toISODate() ?? '');
const success = await handleUpdatePersonBirthDate(person, birthDate?.toISODate() ?? null);
if (success) {
onClose();
}
+1 -1
View File
@@ -99,7 +99,7 @@ const handleShowPerson = async (person: { id: string }) => {
}
};
export const handleUpdatePersonBirthDate = async (person: PersonResponseDto, birthDate: string) => {
export const handleUpdatePersonBirthDate = async (person: PersonResponseDto, birthDate: string | null) => {
const $t = await getFormatter();
try {