fix(editor): block rename applies to correct block when selection changes (#3129)

This commit is contained in:
Waleed
2026-02-03 20:06:03 -08:00
committed by GitHub
parent 5b0c2156e0
commit 7977ac88ca
7 changed files with 95 additions and 45 deletions

View File

@@ -176,6 +176,10 @@ export function formatDuration(
}
} else {
ms = duration
// Handle NaN/Infinity (e.g., cancelled blocks with no end time)
if (!Number.isFinite(ms)) {
return '—'
}
}
const precision = options?.precision ?? 0