fixed filter/search

This commit is contained in:
AndzejsP 2023-05-27 17:33:49 +03:00
parent 67ca0e65de
commit a1dd39cbfe

View File

@ -402,7 +402,12 @@ export default {
if (!this.filterInProgress) {
this.filterInProgress = true
setTimeout(() => {
this.list = this.tempList.filter((item) => item.title && item.title.includes(this.filterTitle))
if(this.filterTitle){
this.list = this.tempList.filter((item) => item.title && item.title.includes(this.filterTitle))
}else{
this.list = this.tempList
}
this.filterInProgress = false
}, 100)
}