aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-07-23 03:03:05 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-08-02 15:19:32 +0200
commit4c306a3a5557f570e39b65426d5bb7cd6acd69cc (patch)
treef27ee976698a2a78e1627d67cccbdb2449987b25 /core
parent663db2bb3439e191a9969aaa56cf8f936f1579e2 (diff)
downloadnextcloud-server-4c306a3a5557f570e39b65426d5bb7cd6acd69cc.tar.gz
nextcloud-server-4c306a3a5557f570e39b65426d5bb7cd6acd69cc.zip
fix: Resolve code linting issues
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r--core/src/views/UnifiedSearch.vue18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue
index baa12f52e5d..95be2dd335f 100644
--- a/core/src/views/UnifiedSearch.vue
+++ b/core/src/views/UnifiedSearch.vue
@@ -596,16 +596,16 @@ export default {
if (data.ocs.data.entries.length < this.defaultLimit) {
this.$set(this.reached, type, true)
}
- } else
+ } else {
+ // If no cursor, we might have all the results already,
+ // let's fake pagination and show the next xxx entries
+ if (this.limits[type] && this.limits[type] >= 0) {
+ this.limits[type] += this.defaultLimit
- // If no cursor, we might have all the results already,
- // let's fake pagination and show the next xxx entries
- if (this.limits[type] && this.limits[type] >= 0) {
- this.limits[type] += this.defaultLimit
-
- // Check if we reached end of pagination
- if (this.limits[type] >= this.results[type].length) {
- this.$set(this.reached, type, true)
+ // Check if we reached end of pagination
+ if (this.limits[type] >= this.results[type].length) {
+ this.$set(this.reached, type, true)
+ }
}
}