2

I am sure this is probably a beginner issue but, I am trying to filter by both ongoing and all_day. How can this be achieved in the same .filter()?

<CurrentRefinements
  transformItems={items =>
    items.filter(item => item.attribute !== 'ongoing', 'all_day')
  }
/>
brooksrelyt
  • 3,925
  • 5
  • 31
  • 54

1 Answers1

1

To include more than one condition, add it using && or ||:

items.filter(item => item.attribute !== 'ongoing' && item.attribute !== 'all_day')
Alvaro
  • 9,247
  • 8
  • 49
  • 76