Skip to content

Commit

Permalink
fix: fix important date type cant be null (monicahq/chandler#397)
Browse files Browse the repository at this point in the history
Close #377
  • Loading branch information
djaiss authored Jan 12, 2023
1 parent 6369a24 commit 6e9362f
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 6e9362f

Please sign in to comment.