filterBy bug with nested properties
See original GitHub issueHi. 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve created a PR that should fix this bug.
Released in 2.6.0