From b9a8405389127574be29adc6e5770a33ea45e4e9 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Thu, 3 Oct 2024 17:21:30 +0100 Subject: [PATCH] fix(frontend): apply feedback updates --- frontend/src/components/contents/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/contents/index.tsx b/frontend/src/components/contents/index.tsx index a4f3bbb..c2c104b 100644 --- a/frontend/src/components/contents/index.tsx +++ b/frontend/src/components/contents/index.tsx @@ -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; },