mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 04:53:41 +00:00
fix(frontend): content update
This commit is contained in:
parent
764bd8c2b6
commit
7b5846d721
@ -165,8 +165,9 @@ export const Contents = () => {
|
||||
field: "entity",
|
||||
headerName: t("label.entity"),
|
||||
flex: 1,
|
||||
valueGetter: (row: IContent) => {
|
||||
const contentType = getEntityFromCache(row.id);
|
||||
renderCell: ({ value }) => {
|
||||
const id = typeof value === "string" ? value : value.id;
|
||||
const contentType = getEntityFromCache(id);
|
||||
|
||||
return contentType?.name;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user