Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

fix: fix important date type cant be null #397

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public static function data(Contact $contact, User $user): array
'name' => $type->label,
];
});
// we add an empty field so the dropdown field can be nullified
$dateTypesCollection->prepend([
'id' => null,
'name' => '',
]);

return [
'contact' => [
Expand Down