Skip to content

Commit d667b84

Browse files
committed
Update unsorted_state_adapter.ts
1 parent 0eaedf6 commit d667b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/entities/unsorted_state_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function createUnsortedStateAdapter<T, Id extends EntityId>(
8888
})
8989

9090
if (didMutate) {
91-
state.ids = state.ids.filter((id) => id in state.entities) as Id[] | Draft<Id[]>
91+
state.ids = (state.ids as Id[]).filter((id) => id in state.entities) as Id[] | Draft<Id[]>
9292
}
9393
}
9494

0 commit comments

Comments
 (0)