fix(frontend): content update

This commit is contained in:
yassinedorbozgithub 2024-10-03 04:17:36 +01:00
parent 764bd8c2b6
commit 7b5846d721

View File

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