Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-02-09 18:15:10 +0300
committerGitHub <noreply@github.com>2021-02-09 18:15:10 +0300
commitf7c865ab22b0de2e20084e508c864425489d6982 (patch)
tree5f6d7e3ae985dd65e0f9c0772157c3501c4cfa18
parenta8e2ce289ef0d56932fa0771495b2153e80252fc (diff)
parentcf6db57bb13ec65978233ca58effa8e34e9f243e (diff)
Merge pull request #5101 from nextcloud/prevent-current-page-in-grid-to-become-negative
Prevent current page in grid to become negative
-rw-r--r--src/components/CallView/Grid/Grid.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/CallView/Grid/Grid.vue b/src/components/CallView/Grid/Grid.vue
index b3eb8315d..4a62a524f 100644
--- a/src/components/CallView/Grid/Grid.vue
+++ b/src/components/CallView/Grid/Grid.vue
@@ -483,7 +483,7 @@ export default {
numberOfPages() {
if (this.currentPage >= this.numberOfPages) {
- this.currentPage = this.numberOfPages - 1
+ this.currentPage = Math.max(0, this.numberOfPages - 1)
}
},
},