Skip to content

Commit 93dd5e9

Browse files
committed
fixed render phase method
1 parent 6a29582 commit 93dd5e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/reports/timeline.rkt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,16 @@
357357
(for/list ([rec (in-list (sort explanations > #:key fourth))])
358358
(match-define (list op expr expl cnt mcnt flows locations) rec)
359359

360+
;; Ensure locations is always a list or handle it properly
361+
(define safe-locations (if (list? locations) locations '()))
362+
360363
(append (list `(tr (td (code ,(~a op)))
361364
(td (code ,(~a expr)))
362365
(td (b ,(~a expl)))
363366
(td ,(~a cnt))
364367
(td ,(~a mcnt))
365-
(td (code ,(string-join (map ~a locations) ", "))))
368+
;; Handle locations as a list or provide a fallback
369+
(td (code ,(string-join (map ~a safe-locations) ", "))))
366370
(for/list ([flow (in-list (or flows '()))])
367371
(match-define (list ex type v) flow)
368372
`(tr (td "") (td (code ,(~a ex))) (td ,type) (td ,(~a v)))))))))))))

0 commit comments

Comments
 (0)