- restore nullable for position

This commit is contained in:
Kamil Niemczycki 2023-07-29 00:58:05 +02:00
parent 7fd3be06ea
commit 753421a5a0
Signed by: kamilniemczycki
GPG Key ID: 04D4E2012F969213
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class CVRequest extends FormRequest
'locations' => 'required|array', 'locations' => 'required|array',
'mission' => 'nullable|string', 'mission' => 'nullable|string',
'rodo' => 'nullable|string', 'rodo' => 'nullable|string',
'position' => 'required|string', 'position' => 'nullable|string',
]; ];
} }
} }

View File

@ -59,7 +59,7 @@ defineProps({
</div> </div>
<div> <div>
<div class="text-gray-500 pb-0.5">Stanowisko</div> <div class="text-gray-500 pb-0.5">Stanowisko</div>
<p class="w-full min-w-full max-w-full px-2.5 py-2 border-b-2 rounded-md bg-white">{{ cv.position }}</p> <p class="w-full min-w-full max-w-full px-2.5 py-2 border-b-2 rounded-md bg-white">{{ cv.position ?? '[Wartość domyślna]' }}</p>
</div> </div>
<div> <div>
<div class="text-gray-500 pb-0.5">E-mail</div> <div class="text-gray-500 pb-0.5">E-mail</div>

View File

@ -10,7 +10,7 @@ const props = defineProps({
}, },
}); });
const categories = ref(props.project.categories ?? []); const categories = ref(props.project?.categories ?? []);
const categoryToString = computed({ const categoryToString = computed({
get: () => categories.value.join(', '), get: () => categories.value.join(', '),