Pramod_Bug#384 : show "NA" for missing email in contact list view #171

Merged
vikas.nale merged 2 commits from pramod_Bug-#384 into Feature_Directory 2025-06-02 07:55:33 +00:00
Showing only changes of commit 4b5c3cd737 - Show all commits

View File

@ -47,7 +47,7 @@ const ListViewDirectory = ({
<td className="px-2" style={{ width: "20%" }}>
<div className="d-flex flex-column align-items-start text-truncate">
{contact.contactEmails?.map((email, index) => (
{contact.contactEmails.length > 0 ? (contact.contactEmails?.map((email, index) => (
<span key={email.id} className="text-truncate">
<i
className={getEmailIcon(email.label)}
@ -60,7 +60,7 @@ const ListViewDirectory = ({
{email.emailAddress}
</a>
</span>
))}
))):(<span className="small-text m-0 px-2">NA</span>)}
</div>
</td>