From ff0f6c90c0d448218fc141e3e138247f324a9124 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Sun, 14 Jul 2024 18:11:45 +1000 Subject: [PATCH] Fix prettier --- packages/virtual-core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/virtual-core/src/index.ts b/packages/virtual-core/src/index.ts index df3df1a0..29d79150 100644 --- a/packages/virtual-core/src/index.ts +++ b/packages/virtual-core/src/index.ts @@ -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), )