mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-11 23:14:58 -05:00
fix(editor): block rename applies to correct block when selection changes (#3129)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user