Skip to content

Commit

Permalink
Merge pull request #619 from pyrra-dev/alerts-table-for-duration-fix
Browse files Browse the repository at this point in the history
Fix the `for` duration formatting in the AlertsTable
  • Loading branch information
metalmatze authored Feb 20, 2023
2 parents 9505c21 + 064fb3b commit 2212467
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/components/AlertsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ const AlertsTable = ({client, objective, grouping}: AlertsTableProps): JSX.Eleme
<td style={{textAlign: 'left'}}>
{longCurrent} ({formatDuration(Number(a.long?.window?.seconds) * 1000)})
</td>
<td style={{textAlign: 'right'}}>{formatDuration(Number(a.for))}</td>
<td style={{textAlign: 'right'}}>
{formatDuration(Number(a.for?.seconds) * 1000)}
</td>
<td>
<a
className="external-prometheus"
Expand Down

0 comments on commit 2212467

Please sign in to comment.