We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c4983 commit 6f75cd2Copy full SHA for 6f75cd2
1 file changed
packages/core/src/lib/pagination/lines.mts
@@ -55,7 +55,8 @@ export function lines<T>({
55
isActive: index === active,
56
}));
57
const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
58
- const renderItemAt = (index: number) => split(renderItem(layoutsInPage[index]!), width);
+ const renderItemAt = (index: number) =>
59
+ layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
60
61
// Create a blank array of lines for the page
62
const pageBuffer: string[] = Array.from({ length: pageSize });
0 commit comments