File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -449,12 +449,10 @@ export function initRepoPullRequestReview() {
449
449
offset += $ ( '.diff-detail-box' ) . outerHeight ( ) + $ ( diffHeader ) . outerHeight ( ) ;
450
450
}
451
451
452
- document . getElementById ( `show-outdated-${ id } ` ) . classList . add ( 'tw-hidden' ) ;
453
- document . getElementById ( `code-comments-${ id } ` ) . classList . remove ( 'tw-hidden' ) ;
454
- document . getElementById ( `code-preview-${ id } ` ) . classList . remove ( 'tw-hidden' ) ;
455
- document . getElementById ( `hide-outdated-${ id } ` ) . classList . remove ( 'tw-hidden' ) ;
452
+ hideElem ( `#show-outdated-${ id } ` ) ;
453
+ showElem ( `#code-comments-${ id } , #code-preview-${ id } , #hide-outdated-${ id } ` ) ;
456
454
// if the comment box is folded, expand it
457
- if ( ancestorDiffBox . getAttribute ( 'data-folded' ) === 'true' ) {
455
+ if ( ancestorDiffBox ? .getAttribute ( 'data-folded' ) === 'true' ) {
458
456
setFileFolding ( ancestorDiffBox , ancestorDiffBox . querySelector ( '.fold-file' ) , false ) ;
459
457
}
460
458
You can’t perform that action at this time.
0 commit comments