question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

filterBy bug with nested properties

See original GitHub issue

Hi. I have a problem filtering this case:

this.data = [ 
     {a: 1, b: {c:2, d:3}},
     {a: 4, b: null},
]

<p>{{ data | filterBy: ['b.c']: 2}}</p> 

Error: Cannot read property 'c' of null

As a temporary workaround I need to loop it manually first and delete all null properties Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Nols1000commented, Oct 10, 2019

I’ve created a PR that should fix this bug.

0reactions
danrevahcommented, Oct 23, 2019

Released in 2.6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-admin bug: filter by nested property - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >
Can not filter by deep nested property of array #181 - GitHub
filterBy doesn't work with nested properties within arrays. Likely affects other Array pipes that use the extractDeepPropertyByMapKey and ...
Read more >
Linq2db: filter by nested property field - Stack Overflow
After the factory method call Transaction.Build(t, u, a) , linq2db loses information about fields mapping and query become good only for ...
Read more >
API request filter by nested object property : r/csharp - Reddit
I am using AutoQueryable ( https://github.com/trenoncourt/AutoQueryable ) for request filtering (something like OData) I have a list of ...
Read more >
Filter by nested properties of type timespan
Hi folks, I am new to powershell and I wanted to understand the concepts behind it and play a bit with filtering by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found