Invalid Date Displayed Instead of "NA" in Employee List

This commit is contained in:
Kartik Sharma 2025-09-09 15:10:10 +05:30 committed by pramod.mahajan
parent 0e35194a82
commit 614d61e6e9

View File

@ -606,9 +606,10 @@ const EmployeeList = () => {
{item.jobRole || "Not Assign Yet"}
</span>
</td>
<td className=" d-none d-md-table-cell">
{moment(item.joiningDate)?.format("DD-MMM-YYYY")}
{item.joiningDate
? moment(item.joiningDate).format("DD-MMM-YYYY")
: "NA"}
</td>
<td>
{showInactive ? (