mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Public share search offset is incorrect (#9465)
This commit is contained in:
@@ -150,12 +150,15 @@ const PaginatedList = <T extends PaginatedItem>({
|
||||
offset,
|
||||
...options,
|
||||
});
|
||||
if (!results) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (offset !== 0) {
|
||||
setRenderCount((prevCount) => prevCount + limit);
|
||||
}
|
||||
|
||||
if (results && (results.length === 0 || results.length < limit)) {
|
||||
if (results.length === 0 || results.length < limit) {
|
||||
setAllowLoadMore(false);
|
||||
} else {
|
||||
setOffset((prevOffset) => prevOffset + limit);
|
||||
|
||||
Reference in New Issue
Block a user