fix(core): for directive filtering bug

pull/2245/head
mehmet-erim 6 years ago
parent 087707879c
commit 4f4075fb2b

@ -155,7 +155,7 @@ export class ForDirective implements OnChanges {
const compareFn = this.compareFn;
if (typeof this.filterBy !== 'undefined' && this.filterVal) {
if (typeof this.filterBy !== 'undefined' && typeof this.filterVal !== 'undefined') {
items = items.filter(item => compareFn(item[this.filterBy], this.filterVal));
}

Loading…
Cancel
Save