Commit 4dcb0da 1 parent 7d87622 commit 4dcb0da Copy full SHA for 4dcb0da
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -731,11 +731,11 @@ let PACER = {
731
731
return 0 ;
732
732
}
733
733
734
- // If the attachment page uses checkboxes, each row should have five child nodes and the attachment
734
+ // If the attachment page uses checkboxes, each row should have five or six child nodes and the attachment
735
735
// number should be inside the second one(the first node has the checkbox). Attachment pages that does
736
736
// not have checkboxes shows the attachment number inside the first child node.
737
737
738
- let rowNumber = row . childElementCount == 5 ? row . childNodes [ 1 ] . innerHTML : row . childNodes [ 0 ] . innerHTML ;
738
+ let rowNumber = [ 5 , 6 ] . includes ( row . childElementCount ) ? row . childNodes [ 1 ] . innerHTML : row . childNodes [ 0 ] . innerHTML ;
739
739
let cleanNumber = this . cleanDocLinkNumber ( rowNumber ) ;
740
740
return cleanNumber ? cleanNumber : 0 ;
741
741
} ,
You can’t perform that action at this time.
0 commit comments