Fix active run elapsed restore
This commit is contained in:
@@ -1475,7 +1475,11 @@ const ActivityChainSummary: FC<{
|
||||
return;
|
||||
}
|
||||
const startedAt =
|
||||
metadataRunStartedAtMs ?? contentRunStartedAtMs ?? startedAtRef.current;
|
||||
metadataRunStartedAtMs ??
|
||||
contentRunStartedAtMs ??
|
||||
(storedElapsedMs === null
|
||||
? startedAtRef.current
|
||||
: Date.now() - storedElapsedMs);
|
||||
setElapsedMs(Math.max(0, Date.now() - startedAt));
|
||||
const timer = window.setInterval(() => {
|
||||
setElapsedMs(Math.max(0, Date.now() - startedAt));
|
||||
|
||||
Reference in New Issue
Block a user