fix(frontend): apply feedback updates

This commit is contained in:
yassinedorbozgithub 2024-10-03 17:21:30 +01:00
parent 3258781d5f
commit b9a8405389

View File

@ -165,9 +165,8 @@ export const Contents = () => {
field: "entity",
headerName: t("label.entity"),
flex: 1,
renderCell: ({ value }) => {
const id = typeof value === "string" ? value : value.id;
const contentType = getEntityFromCache(id);
valueGetter: (row: IContent) => {
const contentType = getEntityFromCache(row.id);
return contentType?.name;
},