Skip to content

Commit 820d350

Browse files
committed
chore: adjust logic
1 parent 150b8c3 commit 820d350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>) {
278278
React.useLayoutEffect(() => {
279279
const changedRecord = heights.getRecord();
280280
if (changedRecord.size === 1) {
281-
const recordKey = changedRecord.keys()[0];
281+
const recordKey = Array.from(changedRecord.keys())[0];
282282
const prevCacheHeight = changedRecord.get(recordKey);
283283

284284
// Quick switch data may cause `start` not in `mergedData` anymore

0 commit comments

Comments
 (0)