Skip to content

Commit

Permalink
Merge branch 'main' into feat-2538-refactor-builder-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rajesh-jonnalagadda authored Dec 10, 2024
2 parents e6e0ba2 + bfe2179 commit 1f28476
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions keep-ui/app/(keep)/alerts/alert-table-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,14 @@ export const useAlertTableCols = (
header: "Last Received",
filterFn: isDateWithinRange,
minSize: 100,
cell: (context) => (
<span title={context.getValue().toISOString()}>
<TimeAgo date={context.getValue().toISOString()} />
</span>
),
// data is a Date object (converted in usePresetAlerts)
cell: (context) => {
return (
<span title={context.getValue().toISOString()}>
<TimeAgo date={context.getValue().toISOString()} />
</span>
);
},
}),
columnHelper.accessor("assignee", {
id: "assignee",
Expand Down
3 changes: 2 additions & 1 deletion keep-ui/app/(keep)/incidents/[id]/alerts/incident-alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ export default function IncidentAlerts({ incident }: Props) {
id: "lastReceived",
header: "Last Event Time",
minSize: 100,
cell: (context) => <TimeAgo date={context.getValue().toISOString()} />,
// data is a ISO string
cell: (context) => <TimeAgo date={context.getValue()} />,
}),
columnHelper.accessor("source", {
id: "source",
Expand Down

0 comments on commit 1f28476

Please sign in to comment.