File tree 2 files changed +2
-16
lines changed
2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ export function selectProposal(number, navigate) {
70
70
try {
71
71
await sendSelectProposal ( number ) ;
72
72
navigate ( '/' ) ;
73
- dispatch ( selectProposalAction ( number ) ) ;
73
+ dispatch ( hideProposalsForm ( ) ) ;
74
+ dispatch ( getLoginInfo ( ) ) ;
74
75
} catch {
75
76
dispatch ( showErrorPanel ( true , 'Server refused to select proposal' ) ) ;
76
77
navigate ( '/login' ) ;
Original file line number Diff line number Diff line change @@ -46,21 +46,6 @@ function loginReducer(state = INITIAL_STATE, action = {}) {
46
46
showProposalsForm : true ,
47
47
} ;
48
48
}
49
- case 'SELECT_PROPOSAL' : {
50
- const proposals = state . proposalList ;
51
-
52
- const propInfo = proposals . find ( ( prop ) => {
53
- // const name = `${prop.code}${prop.number}`;
54
- return prop . session_id === action . proposal ;
55
- } ) ;
56
-
57
- return {
58
- ...state ,
59
- selectedProposal : action . proposal ,
60
- selectedProposalID : propInfo . session_id ,
61
- showProposalsForm : false ,
62
- } ;
63
- }
64
49
case 'HIDE_PROPOSALS_FORM' : {
65
50
return { ...state , showProposalsForm : false } ;
66
51
}
You can’t perform that action at this time.
0 commit comments