Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kongtiaowang committed Nov 18, 2024
1 parent d7293f0 commit d4dc8a2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/survey_accounts/jsx/surveyAccountsIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,20 @@ class SurveyAccountsIndex extends Component {
<button onClick={() => this.deleteclick(row.Instrument, row.Edit)}
className="btn btn-danger" >Delete</button>
<button
className="btn btn-warning" onClick={() => this.archiveclick(row.Instrument, row.Edit)}
>Archive</button>
className="btn btn-warning" onClick={
() => this.archiveclick(row.Instrument, row.Edit)
}
>Archive</button>
</td>;
break;
}
return result;
}
/**
* Handle delete click function
*
* @param Instrument
* @param commentid
* @deleteclick
*/
deleteclick(Instrument, commentid) {
swal.fire({
Expand All @@ -100,7 +103,7 @@ class SurveyAccountsIndex extends Component {
confirmButtonText: 'Yes, delete it!',
}).then((result) => {
if (result.value) {
console.log(Instrument);
console.log(Instrument);
let deleteurl = loris.BaseURL +
'/survey_accounts/deleteSurvey/'+Instrument+'/'+commentid;
fetch(deleteurl, {
Expand Down

0 comments on commit d4dc8a2

Please sign in to comment.