Also include external share results in recommendations

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-12-28 17:15:15 +01:00
parent c62d73641a
commit 9f5ada5d45
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -294,6 +294,8 @@ export default {
return
}
const externalResults = this.externalResults.filter(result => !result.condition || result.condition(this))
const exact = request.data.ocs.data.exact
// flatten array of arrays
@ -302,6 +304,7 @@ export default {
// remove invalid data and format to user-select layout
this.recommendations = this.filterOutExistingShares(rawRecommendations)
.map(share => this.formatForMultiselect(share))
.concat(externalResults)
this.loading = false
console.info('recommendations', this.recommendations)