sync
This commit is contained in:
parent
3402d6f33c
commit
92ab1d5d46
4 changed files with 26 additions and 21 deletions
|
@ -8,12 +8,12 @@ export default {
|
|||
TopicList,
|
||||
},
|
||||
computed: {
|
||||
topics() {
|
||||
topics(): Array<Object> {
|
||||
const topicReferences = [...new Set(this.papers?.map((paper: any) => paper.reference))]
|
||||
return topicReferences.map( (entry: any) => {
|
||||
return topicReferences.map( (ref: String) => {
|
||||
return {
|
||||
'ref': entry,
|
||||
'paper': this.papers?.find( (paper: any) => paper.reference == entry)
|
||||
'ref': ref,
|
||||
'papers': this.papers?.filter( (paper: any) => paper.reference === ref) as Object,
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue