• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: my filter only displays elements with first condition

Resolved: my filter only displays elements with first condition

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I don’t really know the best way to explain this: I have a list with bases and each base has a list of connectors (it could be one or multiple), I made a filter to filter my bases by connectors, here’s what my method looks like:
The problem is, when I wanna filter let’s say with “connector_base_3” and I have one of my bases that has the “connector_base_3” as one of the connectors but it’s not the first one on the list, the base doesn’t show up on my filtered list. I tried changing base.connectors[0].standard with base.connectors.standard or base.connectors but it doesn’t filter anything in that case
Sorry if my explanation is a bit confusing. Does anyone know how to fix the issue here?

Answer:

You should check all connectors in your filter – not just the first one!

If you have better answer, please add a comment about this, thank you!

javascript vue.js
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Best way to create 3d matrix of variables in PULP

24/03/2023

Resolved: Openlayers: Update clusters depending on filter (geometryFunction)

24/03/2023

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.