🔨 Refactor timeline end date logic

- Update timeline end date to latest delta timestamp plus 60 seconds

[src/routes/projects/[projectId]/timeline/+page.svelte]
- Change the end date of the timeline from the latest delta timestamp to the latest delta timestamp plus 60 seconds
This commit is contained in:
Kiril Videlov 2023-02-27 23:41:23 +01:00
parent 9151c5bbd8
commit b6fcf77bfe

View File

@ -226,7 +226,7 @@
dateMilliseconds: dateMilliseconds,
branch: uiSession.session.meta.branch || 'master',
start: new Date(uiSession.earliestDeltaTimestampMs),
end: new Date(uiSession.latestDeltaTimestampMs),
end: addSeconds(new Date(uiSession.latestDeltaTimestampMs), 60),
deltas: uiSession.deltas,
files: listFiles({
projectId: $project?.id || '',