improve type filter
This commit is contained in:
parent
8e852e7041
commit
7203110a55
2 changed files with 5 additions and 2 deletions
|
@ -56,7 +56,10 @@ export default {
|
|||
},
|
||||
],
|
||||
paperFilter: {
|
||||
type: '',
|
||||
type: {
|
||||
key: '',
|
||||
value: '',
|
||||
},
|
||||
originator: '',
|
||||
},
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ export default {
|
|||
}
|
||||
if (this.paperFilter?.type !== '') {
|
||||
filteredPapers = filteredPapers.filter((paper) => {
|
||||
return paper.reference.includes(this.paperFilter?.type)
|
||||
return paper.reference.includes(this.paperFilter?.type.key) && paper.paper_type.includes(this.paperFilter?.type.value)
|
||||
})
|
||||
}
|
||||
return filteredPapers
|
||||
|
|
Loading…
Reference in a new issue