diff --git a/src/renderer/components/item-list/item-detail-list/item-detail-list.tsx b/src/renderer/components/item-list/item-detail-list/item-detail-list.tsx index bb5001bfb..38bf9eb2a 100644 --- a/src/renderer/components/item-list/item-detail-list/item-detail-list.tsx +++ b/src/renderer/components/item-list/item-detail-list/item-detail-list.tsx @@ -1213,7 +1213,9 @@ export const ItemDetailList = ({ lastVisibleStartIndexRef.current = range.startIndex; const el = headerLeftRef.current; if (el) { - const album = getItem?.(range.startIndex) as Album | undefined; + const album = ( + getItem ? getItem(range.startIndex) : dataSourceRef.current[range.startIndex] + ) as Album | undefined; const name = album?.name ?? ''; if (name) { lastHeaderNameRef.current = name;