Skip to content

Commit

Permalink
Fix edgecase for possible nullish value (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
Queuecumbr authored Dec 21, 2023
1 parent 29ff1ea commit 9c92f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/logs/LogsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const LogsPage = () => {
<div className="absolute top-0 w-full" style={{ height: rowVirtualizer.getTotalSize() }}>
<div
className="absolute left-4 w-[95%] space-y-1"
style={{ transform: `translateY(${virtualItems[0].start}px)` }}
style={{ transform: `translateY(${virtualItems[0]?.start ?? 0}px)` }}
>
{virtualItems.map((virtualRow) => {
const row = logLines[virtualRow.index];
Expand Down

0 comments on commit 9c92f42

Please sign in to comment.