Fixed created
This commit is contained in:
parent
33736ceca7
commit
58e3766ebd
@ -58,10 +58,12 @@ export default function EventsChainPage() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const items = cursor.groups.map((group: EventGroup) => {
|
const items = cursor.groups.map((group: EventGroup) => {
|
||||||
|
const created = group.events[0]?.created ?? 0;
|
||||||
return {
|
return {
|
||||||
rowId: group.referenceId,
|
rowId: group.referenceId,
|
||||||
title: group.fileName ?? group.referenceId,
|
title: group.fileName ?? group.referenceId,
|
||||||
items: group.events,
|
items: group.events,
|
||||||
|
created: created,
|
||||||
referenceId: group.referenceId,
|
referenceId: group.referenceId,
|
||||||
} as ExpandableItemRow
|
} as ExpandableItemRow
|
||||||
});
|
});
|
||||||
@ -84,6 +86,8 @@ export default function EventsChainPage() {
|
|||||||
|
|
||||||
|
|
||||||
const createTableCell: TableCellCustomizer<EventGroup> = (accessor, data) => {
|
const createTableCell: TableCellCustomizer<EventGroup> = (accessor, data) => {
|
||||||
|
console.log(accessor, data);
|
||||||
|
|
||||||
switch (accessor) {
|
switch (accessor) {
|
||||||
case "created": {
|
case "created": {
|
||||||
if (typeof data[accessor] === "number") {
|
if (typeof data[accessor] === "number") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user