@@ -28,6 +28,7 @@ class SurveyWizardRespondentsStep extends Component {
2828 invalidImport : PropTypes . object ,
2929 channels : PropTypes . object ,
3030 actions : PropTypes . object . isRequired ,
31+ surveysActions : PropTypes . object . isRequired ,
3132 readOnly : PropTypes . bool . isRequired ,
3233 surveyStarted : PropTypes . bool . isRequired ,
3334 }
@@ -39,8 +40,8 @@ class SurveyWizardRespondentsStep extends Component {
3940
4041 showImportUnusedSampleModal ( e ) {
4142 e . preventDefault ( )
42- let { projectId , surveysActions} = this . props
43- surveysActions . fetchUnusedSample ( projectId )
43+ let { survey , surveysActions } = this . props
44+ surveysActions . fetchUnusedSample ( survey . projectId )
4445 $ ( '#importUnusedSampleModal' ) . modal ( "open" )
4546 }
4647
@@ -406,15 +407,15 @@ class SurveyWizardRespondentsStep extends Component {
406407
407408 let importUnusedSampleButton = ( uploading || readOnly || surveyStarted ) ? null : < div className = "row" >
408409 < div className = "col s12" >
409- < a key = "y" href = "#" onClick = { this . showImportUnusedSampleModal . bind ( this ) } className = "btn-flat btn-flat-link" >
410+ < a key = "y" href = "#" onClick = { ( e ) => this . showImportUnusedSampleModal ( e ) } className = "btn-flat btn-flat-link" >
410411 { t ( "Import unused respondents" ) }
411412 </ a >
412413 </ div >
413414 </ div >
414415
415416 let importUnusedSampleModal = < ImportSampleModal
416417 unusedSample = { unusedSample }
417- onConfirm = { this . importUnusedSample . bind ( this ) }
418+ onConfirm = { ( e ) => this . importUnusedSample ( e ) }
418419 modalId = "importUnusedSampleModal"
419420 />
420421
0 commit comments