@@ -53,7 +53,7 @@ function initRepoCommentForm() {
53
53
54
54
if ( editMode === 'true' ) {
55
55
const form = $ ( '#update_issueref_form' ) ;
56
- $ . post ( form . attr ( 'action' ) , { _csrf : csrf , ref : selectedValue } , window . location . reload ) ;
56
+ $ . post ( form . attr ( 'action' ) , { _csrf : csrf , ref : selectedValue } , ( ) => window . location . reload ( ) ) ;
57
57
} else if ( editMode === '' ) {
58
58
$selectBranch . find ( '.ui .branch-name' ) . text ( selectedValue ) ;
59
59
}
@@ -94,7 +94,7 @@ function initRepoCommentForm() {
94
94
) ;
95
95
promises . push ( promise ) ;
96
96
} ) ;
97
- Promise . all ( promises ) . then ( window . location . reload ) ;
97
+ Promise . all ( promises ) . then ( ( ) => window . location . reload ( ) ) ;
98
98
}
99
99
} ) ;
100
100
@@ -166,7 +166,7 @@ function initRepoCommentForm() {
166
166
'clear' ,
167
167
$listMenu . data ( 'issue-id' ) ,
168
168
'' ,
169
- ) . then ( window . location . reload ) ;
169
+ ) . then ( ( ) => window . location . reload ( ) ) ;
170
170
}
171
171
172
172
$ ( this ) . parent ( ) . find ( '.item' ) . each ( function ( ) {
@@ -209,7 +209,7 @@ function initRepoCommentForm() {
209
209
'' ,
210
210
$menu . data ( 'issue-id' ) ,
211
211
$ ( this ) . data ( 'id' ) ,
212
- ) . then ( window . location . reload ) ;
212
+ ) . then ( ( ) => window . location . reload ( ) ) ;
213
213
}
214
214
215
215
let icon = '' ;
@@ -242,7 +242,7 @@ function initRepoCommentForm() {
242
242
'' ,
243
243
$menu . data ( 'issue-id' ) ,
244
244
$ ( this ) . data ( 'id' ) ,
245
- ) . then ( window . location . reload ) ;
245
+ ) . then ( ( ) => window . location . reload ( ) ) ;
246
246
}
247
247
248
248
$list . find ( '.selected' ) . html ( '' ) ;
0 commit comments