Skip to content

Commit

Permalink
review II
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Jul 2, 2020
1 parent e2df588 commit 81fbd51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ export const DraggableWrapper = React.memo<Props>(

const toggleTopN = useCallback(() => {
setShowTopN((prevShowTopN) => {
const newShopTopN = !prevShowTopN;
if (newShopTopN === false) {
const newShowTopN = !prevShowTopN;
if (newShowTopN === false) {
handleClosePopOverTrigger();
}
return newShopTopN;
return newShowTopN;
});
}, [handleClosePopOverTrigger]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ const reducerManageTimeline = (
},
} as ManageTimelineById;
case 'SET_INDEX_TO_ADD':
const timelineIdState: ManageTimeline = state[action.id] as ManageTimeline;
return {
...state,
[action.id]: {
...timelineIdState,
...state[action.id],
indexToAdd: action.payload,
},
} as ManageTimelineById;
Expand Down

0 comments on commit 81fbd51

Please sign in to comment.