fix: fix sorting
parent
199ca58ad8
commit
ef76870794
|
|
@ -40,7 +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))
|
.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