Skip to content
Snippets Groups Projects
Unverified Commit 5e3fe1cb authored by Julius Härtl's avatar Julius Härtl Committed by GitHub
Browse files

Merge pull request #24864 from nextcloud/bugfix/noid/always-show-external-share

Also include external share results in recommendations
parents 40832acf 9f5ada5d
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -294,6 +294,8 @@ export default { ...@@ -294,6 +294,8 @@ export default {
return return
} }
const externalResults = this.externalResults.filter(result => !result.condition || result.condition(this))
const exact = request.data.ocs.data.exact const exact = request.data.ocs.data.exact
// flatten array of arrays // flatten array of arrays
...@@ -302,6 +304,7 @@ export default { ...@@ -302,6 +304,7 @@ export default {
// remove invalid data and format to user-select layout // remove invalid data and format to user-select layout
this.recommendations = this.filterOutExistingShares(rawRecommendations) this.recommendations = this.filterOutExistingShares(rawRecommendations)
.map(share => this.formatForMultiselect(share)) .map(share => this.formatForMultiselect(share))
.concat(externalResults)
this.loading = false this.loading = false
console.info('recommendations', this.recommendations) console.info('recommendations', this.recommendations)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment