Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Dec 12, 2019
1 parent 359e684 commit 8a65026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/component/src/hooks/internal/useMemoArrayMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function useMemoArrayMap(array, mapper) {
const sameMapper = Object.is(mapper, prevMapperRef.current);

const prevMapperCallsRef = useRef([]);
const { current: prevMapperCalls = {} } = sameMapper ? prevMapperCallsRef : {};
const { current: prevMapperCalls = [] } = sameMapper ? prevMapperCallsRef : {};
const nextMapperCalls = [];

return useMemo(() => {
Expand Down

0 comments on commit 8a65026

Please sign in to comment.