Skip to content

Commit

Permalink
fix: deselect the period only if the new workflow has a different per…
Browse files Browse the repository at this point in the history
…iod type
  • Loading branch information
mediremi committed Jul 12, 2021
1 parent f26584c commit 6be75d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/top-bar/selection-context/selection-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const reducer = (state, { type, payload }) => {
...state,
openedSelect: '',
workflow: payload.workflow,
period: {},
period: (state.workflow && state.workflow.periodType === payload.workflow.periodType)
? state.period : {},
}
case ACTIONS.SELECT_PERIOD:
return {
Expand Down

0 comments on commit 6be75d5

Please sign in to comment.