Skip to content

Commit 1461cec

Browse files
Update frontend/src/components/logging/detailed-logs/DetailedLogs.jsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Chandrasekharan M <[email protected]>
1 parent 01f088f commit 1461cec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/components/logging/detailed-logs/DetailedLogs.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ const DetailedLogs = () => {
7979
}
8080

8181
// Check if execution is stale (>1 hour from creation)
82+
if (!executionDetails?.createdAtRaw) return false;
8283
const createdAt = new Date(executionDetails?.createdAtRaw);
84+
if (isNaN(createdAt.getTime())) return false;
8385
const now = new Date();
8486
const oneHourInMs = 60 * 60 * 1000;
8587
const timeDifference = now - createdAt;

0 commit comments

Comments
 (0)