Skip to content

Commit c378f2a

Browse files
authored
Merge pull request #1 from RzoDev/v1.19.2
fix: remove validation with nested objects
2 parents 1546cd8 + 4dbb957 commit c378f2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-list-manager",
3-
"version": "1.19.1",
3+
"version": "1.19.2",
44
"author": "Rzo! <[email protected]> (https://github.com/RzoDev)",
55
"description": "An Angular Service tool to manage lists efficiently.",
66
"repository": {

src/lib/ngx-list-manager.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class NgxListManager<T> {
5252
remove(item: T){
5353
const exists = this.exists(item);
5454
if(exists){
55-
this._list = this._list.filter((e)=>e!==item);
55+
this._list = this._list.filter((e)=>JSON.stringify(e)!==JSON.stringify(item));
5656
}
5757
}
5858

0 commit comments

Comments
 (0)