Skip to content

Commit

Permalink
Assert type cast to preserve existing behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Jan 12, 2022
1 parent ec62d60 commit b3758b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/data/src/components/use-select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function useSelect(
// `_mapSelect` if we can.
const callbackMapper = useCallback(
hasMappingFunction ? mapSelect : noop,
deps ?? []
deps as unknown[]
);
const _mapSelect = hasMappingFunction ? callbackMapper : null;

Expand Down

0 comments on commit b3758b6

Please sign in to comment.