Skip to content

Commit

Permalink
fix: pagi
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Mar 9, 2025
1 parent 5beb469 commit 249c614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/src/Paginator/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(
public function getLinks(): PaginatorLinksContract
{
return PaginatorLinks::make($this->links)
->reject(static fn (array $link): bool => $link['url'] === '' || str($link['label'])->contains(['«', '»'], true));
->reject(static fn (array $link): bool => $link['url'] === '' || !is_numeric($link['label']));
}

public function getData(): Collection
Expand Down

0 comments on commit 249c614

Please sign in to comment.