Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Jul 28, 2023
1 parent 460e7a1 commit f40d9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const createVirtualStore = (
const shouldAutoEstimateItemSize = !itemSize;
const initialItemSize = itemSize || 40;
const cache =
(cacheSnapshot as unknown as Cache | undefined) ??
(cacheSnapshot as unknown as Cache | undefined) ||
initCache(elementsCount, initialItemSize);
let viewportSize = initialItemSize * max(initialItemCount - 1, 0);
let scrollOffset = 0;
Expand Down

0 comments on commit f40d9b2

Please sign in to comment.