diff --git a/src/resources/js/components/MeetingEditForm.svelte b/src/resources/js/components/MeetingEditForm.svelte index 836345467..8a508d2ca 100644 --- a/src/resources/js/components/MeetingEditForm.svelte +++ b/src/resources/js/components/MeetingEditForm.svelte @@ -150,7 +150,10 @@ trainLines: selectedMeeting?.trainLines ?? '', comments: selectedMeeting?.comments ?? '', customFields: selectedMeeting?.customFields - ? { ...Object.fromEntries(globalSettings.customFields.map((field) => [field.name, ''])), ...selectedMeeting.customFields } + ? { + ...Object.fromEntries(globalSettings.customFields.map((field) => [field.name, ''])), + ...Object.fromEntries(Object.entries(selectedMeeting.customFields).map(([key, value]) => [key, value ?? ''])) + } : Object.fromEntries(globalSettings.customFields.map((field) => [field.name, ''])) }; let latitude = initialValues.latitude; @@ -615,7 +618,7 @@