Skip to content

Commit

Permalink
Add check if range is not defined like in oc10
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Jul 20, 2022
1 parent 931996e commit d949a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-app-files/src/components/Search/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ export default defineComponent({
return this.totalFilesCount.files + this.totalFilesCount.folders
},
rangeItems() {
return this.searchResults.range.split('/')[1]
return this.searchResults.range?.split('/')[1]
},
searchResultExceedsLimit() {
return this.rangeItems > searchLimit
return this.rangeItems && this.rangeItems > searchLimit
},
searchResultExceedsLimitText() {
const translated = this.$gettext(
Expand Down

0 comments on commit d949a60

Please sign in to comment.