make linter happy

This commit is contained in:
7w1 committed 2026-03-18 16:21:30 -05:00
1 parent 6d60ff7f80
commit 9efbce6d34
1 file changed
+3 -2
@@ -41,13 +41,14 @@ export function PaginationLoader({
if (isEmpty) {
const count = isCompact ? 5 : 3;
const anchorIndex = direction === 'backward' ? count - 1 : 0;
const skeletonKeys = Array.from({ length: count }, (_, idx) => `skeleton-${direction}-${idx}`);
return (
<>
{[...Array(count)].map((_, i) => {
{skeletonKeys.map((skeletonKey, i) => {
const attachRef = i === anchorIndex ? observerRef : undefined;
return (
<MessageBase key={i} ref={attachRef}>
<MessageBase key={skeletonKey} ref={attachRef}>
{isCompact ? <CompactPlaceholder /> : <DefaultPlaceholder />}
</MessageBase>
);