Also include external share results in recommendations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
c62d73641a
commit
9f5ada5d45
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue