@@ -305,16 +305,14 @@ export default {
305
305
computed: {
306
306
columnFiltered () {
307
307
let items = this .passedItems .slice ()
308
- if (this .columnFilter === true ) {
309
- Object .entries (this .columnFilterState ).forEach (([key , value ]) => {
310
- if (value && this .rawColumnNames .includes (key)) {
311
- const columnFilter = String (value).toLowerCase ()
312
- items = items .filter (item => {
313
- return String (item[key]).toLowerCase ().includes (columnFilter)
314
- })
315
- }
316
- })
317
- }
308
+ Object .entries (this .columnFilterState ).forEach (([key , value ]) => {
309
+ if (value && this .rawColumnNames .includes (key)) {
310
+ const columnFilter = String (value).toLowerCase ()
311
+ items = items .filter (item => {
312
+ return String (item[key]).toLowerCase ().includes (columnFilter)
313
+ })
314
+ }
315
+ })
318
316
return items
319
317
},
320
318
filterableCols () {
@@ -324,7 +322,7 @@ export default {
324
322
},
325
323
tableFiltered () {
326
324
let items = this .columnFiltered .slice ()
327
- if (this .tableFilter === true && this . tableFilterState ) {
325
+ if (this .tableFilterState ) {
328
326
const filter = this .tableFilterState .toLowerCase ()
329
327
const hasFilter = (item ) => String (item).toLowerCase ().includes (filter)
330
328
items = items .filter (item => {
@@ -335,7 +333,7 @@ export default {
335
333
},
336
334
sortedItems () {
337
335
const col = this .sorterState .column
338
- if (! col || this . sorter !== true || ! this .rawColumnNames .includes (col)) {
336
+ if (! col || ! this .rawColumnNames .includes (col)) {
339
337
return this .tableFiltered
340
338
}
341
339
// if values in column are to be sorted by numeric value they all have to be type number
0 commit comments