Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jul 14, 2024
1 parent 0bddd36 commit ff0f6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/virtual-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ export class Virtualizer<
// If lanes is 1, use the last measurement's end, otherwise find the maximum end value among all measurements
end =
this.options.lanes === 1
? measurements[measurements.length - 1]?.end ?? 0
? (measurements[measurements.length - 1]?.end ?? 0)
: Math.max(
...measurements.slice(-this.options.lanes).map((m) => m.end),
)
Expand Down

0 comments on commit ff0f6c9

Please sign in to comment.