File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed
src/store/states/common/saga Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,24 @@ export function* createSurveyProposal(
2828 ) ;
2929
3030 yield put ( actions . setCommonAction ( null ) ) ;
31- yield put ( actions . createSurveyProposal . success ( proposal ) ) ;
31+ yield put (
32+ actions . createSurveyProposal . success ( {
33+ proposal,
34+ commonId : payload . commonId ,
35+ } ) ,
36+ ) ;
3237
3338 if ( payload . callback ) {
3439 payload . callback ( null , proposal ) ;
3540 }
3641 } catch ( error ) {
3742 if ( isError ( error ) ) {
38- yield put ( actions . createSurveyProposal . failure ( error ) ) ;
43+ yield put (
44+ actions . createSurveyProposal . failure ( {
45+ error,
46+ commonId : payload . commonId ,
47+ } ) ,
48+ ) ;
3949
4050 if ( payload . callback ) {
4151 payload . callback ( error ) ;
@@ -67,14 +77,24 @@ export function* createFundingProposal(
6777 ) ;
6878
6979 yield put ( actions . setCommonAction ( null ) ) ;
70- yield put ( actions . createFundingProposal . success ( proposal ) ) ;
80+ yield put (
81+ actions . createFundingProposal . success ( {
82+ proposal,
83+ commonId : payload . commonId ,
84+ } ) ,
85+ ) ;
7186
7287 if ( payload . callback ) {
7388 payload . callback ( null , proposal ) ;
7489 }
7590 } catch ( error ) {
7691 if ( isError ( error ) ) {
77- yield put ( actions . createFundingProposal . failure ( error ) ) ;
92+ yield put (
93+ actions . createFundingProposal . failure ( {
94+ error,
95+ commonId : payload . commonId ,
96+ } ) ,
97+ ) ;
7898
7999 if ( payload . callback ) {
80100 payload . callback ( error ) ;
You can’t perform that action at this time.
0 commit comments