Skip to content

Commit

Permalink
(updated): removeValuesByKeys does not work properly when passing mul…
Browse files Browse the repository at this point in the history
…tiple keys
  • Loading branch information
ssougnez committed Jan 1, 2023
1 parent 3ea2712 commit b3f983b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ng-store/projects/ng-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ssougnez/ng-store",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [ "Angular", "store", "data management", "reactive", "ngrx", "state" ],
"peerDependencies": {
"@angular/common": ">= 14.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class NgStore<TStore> {

for (const index of snapshotRoot._indiceNames) {
const value = snapshotRoot._array[i].value[index];
const mapArray = (snapshotRoot._indices[index].get(value) || []).filter(p => p !== i);
const mapArray = (draftRoot._indices[index].get(value) || []).filter(p => p !== i);

draftRoot._indices[index].set(value, mapArray);
}
Expand Down

0 comments on commit b3f983b

Please sign in to comment.