fix: add sorting by date
parent
777366b3fa
commit
199ca58ad8
|
|
@ -40,6 +40,7 @@ function filterIncidentsByMonth(
|
||||||
...e,
|
...e,
|
||||||
monitors: (e.monitors || []).map((e) => workerConfig.monitors.find((mon) => mon.id === e)!),
|
monitors: (e.monitors || []).map((e) => workerConfig.monitors.find((mon) => mon.id === e)!),
|
||||||
}))
|
}))
|
||||||
|
.sort((a, b) => (new Date(a.start) > new Date(b.start) ? 1 : -1))
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPrevNextMonth(monthStr: string) {
|
function getPrevNextMonth(monthStr: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue