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 6, 2022
1 parent 747a272 commit 7f9e829
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 7f9e829

Please sign in to comment.