[Vuejs]-Lodash filter not working with multiple conditions

1👍

The issue is your condition:

item => item.element != 'loader' || item.element != 'button'

That condition will always evaluate to true, because every possible element will be unequal to either loader or button. My guess is you want: !(item.element === 'loader' || item.element === 'button').

👤Retsam

Leave a comment