Skip to content

Commit

Permalink
use default assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 authored Oct 29, 2023
1 parent b05b6ba commit d28e6f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/toolkit/src/entities/state_selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export function createSelectorsFactory<T, Id extends EntityId>() {
selectState?: (state: V) => EntityState<T, Id>,
options: GetSelectorsOptions = {}
): EntitySelectors<T, any, Id> {
let { createSelector } = options
createSelector ??= createDraftSafeSelector
const { createSelector = createDraftSafeSelector as AnyCreateSelectorFunction } = options

const selectIds = (state: EntityState<T, Id>) => state.ids

Expand Down

0 comments on commit d28e6f5

Please sign in to comment.