added one more property in avoid column

This commit is contained in:
Pramod Mahajan 2025-05-09 10:04:50 +05:30
parent 0ac2dc36ff
commit ff7f61b338

View File

@ -14,7 +14,7 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
"tenant", "tenant",
"tenantId", "tenantId",
"checkLists", "checkLists",
"isSystem" "isSystem",
]; ];
const safeData = Array.isArray(data) ? data : []; const safeData = Array.isArray(data) ? data : [];
@ -107,7 +107,11 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
)} )}
</td> </td>
))} ))}
<td className={`${!hasMasterPermission && "d-none"}`}> <td className={!hasMasterPermission ? "d-none" : ""}>
{selectedMaster === "Application Role" && item?.isSystem ? (
"--"
) : (
<>
<button <button
aria-label="Modify" aria-label="Modify"
type="button" type="button"
@ -131,6 +135,8 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
> >
<i className="bx bx-trash me-1 text-danger"></i> <i className="bx bx-trash me-1 text-danger"></i>
</button> </button>
</>
)}
</td> </td>
</tr> </tr>
)) ))