From eb166e6174aa527a30b2f42d9891a762bbd13bbc Mon Sep 17 00:00:00 2001 From: Kamil Date: Tue, 23 Jul 2024 09:10:52 +0200 Subject: [PATCH] #452 - fix: fixed edit form --- app/Http/Resources/UserFormDataResource.php | 5 ----- resources/js/Pages/Users/Edit.vue | 22 --------------------- 2 files changed, 27 deletions(-) diff --git a/app/Http/Resources/UserFormDataResource.php b/app/Http/Resources/UserFormDataResource.php index 6704791c..437ecd8e 100644 --- a/app/Http/Resources/UserFormDataResource.php +++ b/app/Http/Resources/UserFormDataResource.php @@ -20,13 +20,8 @@ public function toArray($request): array "role" => $this->role, "position" => $this->profile->position, "employmentForm" => $this->profile->employment_form, - "employmentDate" => $this->profile->employment_date->toDateString(), "birthday" => $this->profile->birthday->toDateString(), "slackId" => $this->profile->slack_id, - "lastMedicalExamDate" => $this->profile->last_medical_exam_date?->toDateString(), - "nextMedicalExamDate" => $this->profile->next_medical_exam_date?->toDateString(), - "lastOhsTrainingDate" => $this->profile->last_ohs_training_date?->toDateString(), - "nextOhsTrainingDate" => $this->profile->next_ohs_training_date?->toDateString(), ]; } } diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index a8f6fe23..b06778cf 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -253,28 +253,6 @@ function editUser() {

-
- -
- -

- {{ form.errors.employmentDate }} -

-
-