File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -408,18 +408,17 @@ function initCommentForm() {
408
408
$ ( `.${ selector } ` ) . dropdown ( 'setting' , 'onHide' , ( ) => {
409
409
hasUpdateAction = $listMenu . data ( 'action' ) === 'update' ; // Update the var
410
410
if ( hasUpdateAction ) {
411
- const promises = [ ] ;
412
- Object . keys ( items ) . forEach ( ( elementId ) => {
413
- const item = items [ elementId ] ;
414
- const promise = updateIssuesMeta (
415
- item [ 'update-url' ] ,
416
- item . action ,
417
- item [ 'issue-id' ] ,
418
- elementId ,
419
- ) ;
420
- promises . push ( promise ) ;
421
- } ) ;
422
- Promise . all ( promises ) . then ( reload ) ;
411
+ ( async function ( ) {
412
+ for ( const [ elementId , item ] of Object . entries ( items ) ) {
413
+ await updateIssuesMeta (
414
+ item [ 'update-url' ] ,
415
+ item . action ,
416
+ item [ 'issue-id' ] ,
417
+ elementId ,
418
+ ) ;
419
+ }
420
+ window . location . reload ( ) ;
421
+ } ) ( ) ;
423
422
}
424
423
} ) ;
425
424
You can’t perform that action at this time.
0 commit comments