mirror of https://github.com/statping/statping
PCORE-2213: Date update_at fix (#36)
* feat: minor cosmetic change in showing dates * feat: minor cosmetic change in showing dates * feat: scroll to input when editing incident * fix: class to classnamepull/1113/head
parent
fceb5b87c6
commit
4dbafb51f2
|
@ -18,7 +18,7 @@ const IncidentUpdate = ({ update, admin }) => {
|
|||
return (
|
||||
<div className="incident-wrapper mb-3 pb-2 d-flex" role="alert">
|
||||
<div className="time-line mr-2">
|
||||
<span class="dot"></span>
|
||||
<span className="dot"></span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
@ -35,7 +35,7 @@ const IncidentsBlock = ({ service, group }) => {
|
|||
incidents?.map((incident) => {
|
||||
const { id, title, description, updates, updated_at } = incident;
|
||||
const latestUpdate =
|
||||
updates?.length > 0 && updates[updates.length - 1];
|
||||
updates?.length > 0 && updates[0];
|
||||
const updatedAt = latestUpdate
|
||||
? latestUpdate.updated_at
|
||||
: updated_at;
|
||||
|
|
Loading…
Reference in New Issue