Don't display no results if still loading

pull/4795/head
Chocobozzz 2022-02-08 11:19:12 +01:00
parent 612dd3c3f5
commit c356907b71
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,8 @@ export class VideosListComponent implements OnInit, OnChanges, OnDestroy {
}
loadMoreVideos (reset = false) {
if (reset) this.hasDoneFirstQuery = false
this.getVideosObservableFunction(this.pagination, this.filters)
.subscribe({
next: ({ data }) => {

View File

@ -110,6 +110,8 @@ export class VideosSelectionComponent implements AfterContentInit {
}
loadMoreVideos (reset = false) {
if (reset) this.hasDoneFirstQuery = false
this.getVideosObservable(this.pagination.currentPage)
.subscribe({
next: ({ data }) => {