mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-12 04:09:48 +08:00
fix: show cancelled requests in timeline
This commit is contained in:
@@ -433,7 +433,7 @@ const formatLatency = (ms: number | undefined | null): string => {
|
|||||||
const timeline = computed<CandidateRecord[]>(() => {
|
const timeline = computed<CandidateRecord[]>(() => {
|
||||||
if (!trace.value) return []
|
if (!trace.value) return []
|
||||||
return [...trace.value.candidates]
|
return [...trace.value.candidates]
|
||||||
.filter(c => ['success', 'failed', 'skipped', 'available', 'pending', 'streaming'].includes(c.status))
|
.filter(c => ['success', 'failed', 'skipped', 'cancelled', 'pending', 'streaming'].includes(c.status))
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
const startedA = a.started_at ? new Date(a.started_at).getTime() : Infinity
|
const startedA = a.started_at ? new Date(a.started_at).getTime() : Infinity
|
||||||
const startedB = b.started_at ? new Date(b.started_at).getTime() : Infinity
|
const startedB = b.started_at ? new Date(b.started_at).getTime() : Infinity
|
||||||
|
|||||||
Reference in New Issue
Block a user