fix: error undefined
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s

This commit is contained in:
Methapon2001 2025-08-19 11:45:24 +07:00
parent 02d02cf3a1
commit 473e272328

View file

@ -314,7 +314,7 @@ function handleCheckAll() {
/> -->
<AvatarGroup
:data="[
...responsiblePerson(props.row.quotation).user.map((v) => ({
...(responsiblePerson(props.row.quotation)?.user.map((v) => ({
name:
$i18n.locale === 'eng'
? `${v.firstNameEN} ${v.lastNameEN}`
@ -324,11 +324,11 @@ function handleCheckAll() {
? `/no-img-man.png`
: `/no-img-female.png`
: `${baseUrl}/user/${v.id}/profile-image/${v.selectedImage}`,
})),
...responsiblePerson(props.row.quotation).group.map((g) => ({
})) || []),
...(responsiblePerson(props.row.quotation)?.group.map((g) => ({
name: `${$t('general.group')} ${g.group}`,
imgUrl: '/img-group.png',
})),
})) || []),
]"
></AvatarGroup>
</q-td>