mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-08 16:22:05 -04:00
LoadMore: Add ShowMore only if data is available
This commit is contained in:
parent
564d0b6d8c
commit
0388f5ee67
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ trait LoadMore
|
|||
yield $data;
|
||||
}
|
||||
|
||||
if ($this->loadMoreUrl !== null) {
|
||||
if ($count > 0 && $this->loadMoreUrl !== null) {
|
||||
$showMore = (new ShowMore(
|
||||
$result,
|
||||
$this->loadMoreUrl->setParam('page', $pageNumber)
|
||||
|
|
|
|||
Loading…
Reference in a new issue